I am doing an MSI that must run multiple custom actions sequentially on
install and on uninstall. These custom actions involve running the same
installed file all over again. They also involve deleting certain
directories.

Is there a clean way of achieving this? Currently, the setup complains and
fails to complete while running multiple of these. I attached my original
file and snippets of the code can be found below. I used the way
recommended in the WIX wiki.

What is also worth to note is that the commented STUB_SETUP will work.
However, the other uncommented items will not. I appreciate any insight
that you would be able to offer into this matter.

Thanks,
RG
    <CustomAction Id="SET_STUBENV" Return="check" Execute="immediate"
Property="STUBENV" Value="[TARGETDIR]$(var.SKUName).exe" />
    <CustomAction Id="STUB_SETUP" Property="STUBENV" Execute="commit"
ExeCommand="/setup" Return="ignore" Impersonate="no" />
    <CustomAction
      Id="LaunchFile"
      Property="STUBENV"
      ExeCommand="/installA" />
    <CustomAction
      Id="LaunchFile2"
      Property="STUBENV"
      ExeCommand="/loadProfile .\Profile\Settings.settings" />

    <InstallUISequence>
      <LaunchConditions After="AppSearch" />
      <Custom Action="ERRCA_CANCELEXISTINGVERSION"
After="ValidateProductID">EXISTINGPRODUCTFOUND AND NOT
Installed</Custom>
      <Custom Action="ERRCA_ALREADYNEWERVERSION"
After="ERRCA_CANCELEXISTINGVERSION">NEWPRODUCTFOUND AND NOT
Installed</Custom>
      <Custom Action="DIRCA_TARGETDIR"
After="ERRCA_ALREADYNEWERVERSION">TARGETDIR=""</Custom>
      <Custom Action="DIRCA_VSINSTALLDIR"
After="DIRCA_TARGETDIR">VSINSTALLDIR=""</Custom>
      <Custom Action="DIRCA_VSROOTDIR"
After="DIRCA_VSINSTALLDIR">VSROOTDIR=""</Custom>
      <Show Dialog="ResumeForm" After="IsolateComponents">Installed="" AND
RESUME</Show>
      <Show Dialog="MaintenanceForm"
After="ResumeForm"><![CDATA[Installed<>""]]></Show>
      <Show Dialog="WelcomeForm" After="CostFinalize">Installed="" AND NOT
RESUME</Show>
      <Show Dialog="ProgressForm" After="WelcomeForm" />
      <Show Dialog="FatalErrorForm" OnExit="error">NOT
HideFatalErrorForm</Show>
      <Show Dialog="UserExitForm" OnExit="cancel" />
      <Show Dialog="FinishedForm" OnExit="success" />
    </InstallUISequence>
    <AdminExecuteSequence>
      <Custom Action="ERRCA_ADMINORADVERTISED" Before="CostInitialize" />
    </AdminExecuteSequence>
    <AdvertiseExecuteSequence>
      <Custom Action="ERRCA_ADMINORADVERTISED" Before="CostInitialize" />
    </AdvertiseExecuteSequence>
    <InstallExecuteSequence>
      <LaunchConditions After="AppSearch" />
      <Custom Action="DIRCA_TARGETDIR"
After="ValidateProductID">TARGETDIR=""</Custom>
      <Custom Action="DIRCA_VSINSTALLDIR"
After="DIRCA_TARGETDIR">VSINSTALLDIR=""</Custom>
      <Custom Action="SET_STUBENV"
After="DIRCA_VSINSTALLDIR">STUBENV=""</Custom>
      <Custom Action="DIRCA_VSROOTDIR"
After="SET_STUBENV">VSROOTDIR=""</Custom>
      <!-- <Custom Action="STUB_SETUP" After="MsiPublishAssemblies" /> -->
      <Custom Action="LaunchFile" After="InstallFiles" />
      <Custom Action="LaunchFile2" After="LaunchFile" />
      <Custom Action="ERRCA_CANCELEXISTINGVERSION"
After="FindRelatedProducts">EXISTINGPRODUCTFOUND</Custom>
      <Custom Action="ERRCA_ALREADYNEWERVERSION"
After="ERRCA_CANCELEXISTINGVERSION">NEWPRODUCTFOUND</Custom>
      <RemoveExistingProducts After="InstallInitialize" />
    </InstallExecuteSequence>



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to