Tutorial for Click Twice installer with WiX Designer

Add-in Express™ Support Service
That's what is more important than anything else

Tutorial for Click Twice installer with WiX Designer
 
Keith Tromer




Posts: 25
Joined: 2012-10-25
Hello.

I have searched and searched. All of the tutorials and information I can find on creating setup projects for ADX Com Add-ins use the (now defunct) Windows Installer.

Can you point me to some step-by-step docs for video of how to create a Click Twice installer, (that is updateable without uninstalling previous) that uses your Wix Designer toolset?

Thanks,
kt
Posted 09 Jul, 2014 14:06:50 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hello Keith,

ClickTwice deploys a .MSI file. It doesn't depend on the way the .MSI is created: WiX, Visual Studio Installer, whatever. This said, the step-by-step instruction is given in the manual, see section Deploying an Office extension via ClickTwice in the PDF file in the folder {Add-in Express}\Docs on your development PC.

On how to create a .MSI using WiX Designer, please see http://www.add-in-express.com/creating-addins-blog/2014/04/08/creating-standard-install-package-wix-designer/.


Andrei Smolin
Add-in Express Team Leader
Posted 10 Jul, 2014 04:08:51 Top
Keith Tromer




Posts: 25
Joined: 2012-10-25
Thanks Andrei. Yes there is more information in the documents than on the Web Site. I apologize for not using that resource first.

I have got an installer operational but still have 1 issue and 1 question related to the above.

1. I used the ADX Create Setup project on my addin. The base files install fine. However, I am trying to install files that are marked as 'content'. They do no come over automatically. So I added entries in the File System editor (which automatically created the folder for my project under Program Files). This is what I did:

File System on Target Machine
---Application Folder (created automatically / EMPTY)
---Program Files Folder (Created automatically)
------MyAddin1 (created automatically main files, referenced dlls, adx stuff all in there automatically)
---------SubFolder1 (I created this)
-------------Resources (I created this)
------------------file.emf (this is the file I am looking to install)

The subfolder, resources folder and file.emf do NOT get installed on the target machine. I am sure I am doing something wrong, but cannot figure out what.

Here is the markup put into Product.wxs

 <Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="INSTALLFOLDER" Name="MyAddin1">
          <Directory Id="dir_4EFA2A37_D75A_4350_8071_60037546BF12" Name="SubFolder1">
            <Component Id="comp_dir_4EFA2A37_D75A_4350_8071_60037546BF12" Guid="F9D21A88-90A7-4D07-99A7-D5C176A27474" KeyPath="yes">
              <CreateFolder Directory="dir_4EFA2A37_D75A_4350_8071_60037546BF12" />
              <RemoveFolder Id="id_21E84BF1_AAF2_4250_B853_16DF248E2B97" On="uninstall" Directory="dir_4EFA2A37_D75A_4350_8071_60037546BF12" />
            </Component>
            <Directory Id="dir_8933FED2_B9D5_4600_9D75_F7F88F3C9B34" Name="Resources">
              <Component Id="comp_dir_8933FED2_B9D5_4600_9D75_F7F88F3C9B34" Guid="A1A21943-06CC-4190-8C71-60E58AAE3C04" KeyPath="yes">
                <CreateFolder Directory="dir_8933FED2_B9D5_4600_9D75_F7F88F3C9B34" />
                <RemoveFolder Id="id_5D0D0A4E_0980_4C12_823C_23E8AACC7461" On="uninstall" Directory="dir_8933FED2_B9D5_4600_9D75_F7F88F3C9B34" />
              </Component>
              <Component Id="comp_885CE238_592F_4EB9_BAA8_2A91106BA686" Guid="627CFD38-37B4-43EB-B740-5A5034B23D05" Permanent="no" SharedDllRefCount="no" Transitive="no">
                <File Id="_84D6DFBD_92FF_4FCE_A22B_E2E6F35D7913" DiskId="1" Hidden="no" ReadOnly="no" TrueType="no" System="no" Vital="yes" Name="file.emf" Source="H:MyAddin1SubFolder1Resourcesile.emf" KeyPath="yes" />
              </Component>
            </Directory>
          </Directory>
        </Directory>
      </Directory>
    </Directory>
  </Fragment>


2. My second question is still in regards to my original post. When I create the Wix Project from the ADX Addin 'Create Setup Project' - is all the information transferred properly? Should I not see some registry entries in the Wix Registry tool? Should Content file entries be automatically generated? I don't see any items in the user interface section, however, there ARE dialogs that show when the install is run. So... this is why I was wondering if there was (or needs to be) a specific tutorial for using Wix Designer with ADX Addins for .net?

Thanks,

-kt
Posted 11 Jul, 2014 10:12:01 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hello Keith,

Keith Tromer writes:
Should I not see some registry entries in the Wix Registry tool?


Add-in Express creates registry entries using the custom action executable the file name of which is adxregistrator.exe. This is why the registry entries are missing in the Registry View.

Keith Tromer writes:
Should Content file entries be automatically generated?


No. If you create a setup project using Visual Studio Installer, there will be no content files in the project.

Keith Tromer writes:
I don't see any items in the user interface section, however, there ARE dialogs that show when the install is run.


Add-in Express creates a minimalistic setup project which uses the dialog set called WixUI_InstallDir.

I cannot answer your first question as I don't know WiX. I also believe that my generic answers are not what you need. So, please look for an answer in WiX manuals. To reply to your question on dialogs, I've used the manual installed with WiX: Start Menu | WiX Toolset 3.8 | WiX Documentation.


Andrei Smolin
Add-in Express Team Leader
Posted 14 Jul, 2014 07:34:39 Top