Hi guys,


I need a double click solution on msi files, for small and minor updates. And 
as you may know that is not working with just a double click. I was looking 
through the whole user list and tried every suggestion from before, even other 
solutions but I cannot get that working. So that's what I tried:



--------------------------------------------------------------------------------

    <Property Id="MSIUNINSTALLSUPERSEDEDCOMPONENTS" Value="1"/>

    <Property Id="REINSTALL" Value="ALL" />

    <Property Id="REINSTALLMODE" Value="vomus"/>



    <Upgrade Id="$(var.UpgradeCode)">

        <UpgradeVersion Minimum="1.0.1.0" IncludeMinimum="no" OnlyDetect="yes" 
Property="NEWERVERSIONFOUND" />

        <UpgradeVersion Minimum="1.0.0.0" IncludeMinimum="yes" 
Maximum="1.0.1.0" IncludeMaximum="no"    Property="OLDERVERSIONFOUND" />

    </Upgrade>



    <!-- for msp small update or minor upgrade processing -->

    <CustomAction Id="SetMspSmallUpdateOrMinorUpgradeReInstallProperty" 
Property="REINSTALL" Value="ALL" />

    <CustomAction Id="SetMspSmallUpdateOrMinorUpgradeReInstallModeProperty" 
Property="REINSTALLMODE" Value="omus" />



    <!-- for msu minor upgrade processing -->

    <CustomAction Id="SetMsiMinorUpgradeReInstallProperty" Property="REINSTALL" 
Value="ALL" />

    <CustomAction Id="SetMsiMinorUpgradeReInstallModeProperty" 
Property="REINSTALLMODE" Value="vomus" />



    <!-- for msi major upgrade processing -->

    <CustomAction Id="SetMsiMajorUpgradePreventDowngradingError" Error="Newer 
version already installed." />

    <CustomAction Id="SetMsiMajorUpgradeReInstallProperty" Property="REINSTALL" 
Value="ALL" />

    <CustomAction Id="SetMsiMajorUpgradeReInstallModeProperty" 
Property="REINSTALLMODE" Value="vomus" />



    <InstallExecuteSequence>

        <!-- for msp small update or minor upgrade processing -->

        <!--<Custom Action="SetMspSmallUpdateOrMinorUpgradeReInstallProperty" 
After="LaunchConditions">PATCH And Installed</Custom>

        <Custom Action="SetMspSmallUpdateOrMinorUpgradeReInstallModeProperty" 
After="LaunchConditions">PATCH And Installed</Custom>-->

        <Custom Action="SetMspSmallUpdateOrMinorUpgradeReInstallProperty" 
After="LaunchConditions">QFEUpgrade=2</Custom>

        <Custom Action="SetMspSmallUpdateOrMinorUpgradeReInstallModeProperty" 
After="LaunchConditions">QFEUpgrade=2</Custom>



        <!-- for msi minor upgrade processing -->

        <Custom Action="SetMsiMinorUpgradeReInstallProperty" 
After="LaunchConditions">QFEUpgrade=1</Custom>

        <Custom Action="SetMsiMinorUpgradeReInstallModeProperty" 
After="LaunchConditions">QFEUpgrade=1</Custom>



        <!-- for msi major upgrade processing -->

        <Custom Action="SetMsiMajorUpgradePreventDowngradingError" 
After="FindRelatedProducts">NEWERVERSIONFOUND</Custom>

        <Custom Action="SetMsiMajorUpgradeReInstallProperty" 
After="FindRelatedProducts">OLDERVERSIONFOUND</Custom>

        <Custom Action="SetMsiMajorUpgradeReInstallModeProperty" 
After="FindRelatedProducts">OLDERVERSIONFOUND</Custom>

        <RemoveExistingProducts 
After="InstallFinalize">OLDERVERSIONFOUND</RemoveExistingProducts>  <!-- note - 
windows installer sets UPGRADINGPRODUCTCODE property when this action runs -->

   </InstallExecuteSequence>

--------------------------------------------------------------------------------



Iam going nuts with that. It's always working when calling via commandline  
"msiexec /i my.msi /l*v log.log REINSTALL=ALL REINSTALLMODE=vomus" but the log 
shows no different until the message shows up, which means to uninstall the 
current program.



The problem is the configuration, I do not want that the user have to configure 
everything again, just because of a small update.



If someone has another way to do that, feel free to post solutions here. I 
would even try to build an Setup exe (if you have a small code) which executes 
the msi but that would be the last solution.



kindly



Martin Lierschof

Software Engineer
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to