Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddIn set up #13

Open
akothoor opened this issue Apr 22, 2016 · 6 comments
Open

AddIn set up #13

akothoor opened this issue Apr 22, 2016 · 6 comments

Comments

@akothoor
Copy link

Hi Govert,

I am trying to use this installer but I cannot seem to add my Add-In project as a reference to the ExcelAddInDeploy project. Is this setup project supposed to be independent of the actual ExcelDNA project ? And I would just need to specify the physical path to the actual xll file (after compile) in the Product.wxs file ?

Thanks.

@govert
Copy link
Member

govert commented Apr 22, 2016

I didn't make the WiXinstaller, but I'm happy to support it.
Yes - I think you make a copy of the WiXInstaller and customize it, using your compiled add-in. I guess they can be part of the same solution, but don't have other links like a reference or anything.

@akothoor
Copy link
Author

Okay, yes I got it to work that way. Also I upgraded the version number and re-deployed the ExcelAddInDeploy project and created a new msi file. Then when I open Excel it does not detect that there is an upgrade and it does not try to upgrade to new version on Auto Open. How can that be made possible ?

@govert
Copy link
Member

govert commented Apr 22, 2016

Doing some kind of auto-upgrade would be a whole different story.
It's probably something you'd do by structuring your add-in in two parts, a master add-in that just checks for the current version, and downloads it if needed, and then the real add-in itself, with different versions.
Maybe there's some way to get the MSI installer to help, but it's not an area I'm familiar with at all.

@akothoor
Copy link
Author

Ah okay. Do you know how to get rid of the Licence agreement bit? Maybe just get rid of that "I agree" check box ?

Thanks.

@govert
Copy link
Member

govert commented Apr 22, 2016

From http://stackoverflow.com/questions/13045658/removing-license-dialog it looks like you can change the setup from WixUI_Minimal in this part

    <UI Id="UI">
       <!--See http://wix.sourceforge.net/manual-wix3/WixUI_index.htm for more information
       The following line adds the minimal WiX Dialog set to the install--> 
      <UIRef Id="WixUI_Minimal"/>
      <!-- This TextStyle is used in the CustonMessages.wxl file -->
      <TextStyle Id="Black10" FaceName="Tahoma" Size="10" Red="0" Green="0" Blue="0" Bold="yes" />
    </UI>

to

<UI>
    <UIRef Id="WixUI_InstallDir" />

    <!-- Skip license dialog -->
    <Publish Dialog="WelcomeDlg"
             Control="Next"
             Event="NewDialog"
             Value="InstallDirDlg"
             Order="2">1</Publish>
    <Publish Dialog="InstallDirDlg"
             Control="Back"
             Event="NewDialog"
             Value="WelcomeDlg"
             Order="2">1</Publish>
</UI>

Google has a lot more too...

@sjahongir
Copy link

@akothoor Did you find solution? I have the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants