Don't put the cmd.exe into your setup.

 From http://wix.mindcapers.com/wiki/Category:Custom_Actions:

<CustomAction Id="CA1" Prperty="CA1_PROP"  
Value="[SystemFolder]cmd.exe" />
<CustomAction Id="CA2" Property="CA1_PROP" ExeCommand="/c dir &quot; 
[INSTALLDIR]&quot; &gt; c:\dir2.txt" />
<InstallExecuteSequence>
        <Custom Action="CA1" After="InstallFinalize" />
        <Custom Action="CA2" After="CA1" />
</InstallExecuteSequence>
Change that ExeCommand to "/c msiexec /x project.msi"

Best regards,
Sebastian Brand

Instyler Software - http://www.instyler.com


On Feb 7, 2008, at 8:17 , ramya ragupathy wrote:

>
> Hi
> Currently am trying to code for an uninstaller that would uninstall a
> specific program of mine.
> I have implemented this uninstallation through this command
>
> path\msiexec /x project.msi
>
> and i do this as an custom action
>
> <Binary Id="CmdExe" SourceFile="C:\WINDOWS\system32\cmd.exe" />
>
>    <CustomAction Id="Remove" Return="check" HideTarget="yes"
> Execute="immediate" Impersonate="no" TerminalServerAware="no"
> ExeCommand="/c "C:\Documents and Settings\rragupathy\My Documents 
> \Visual
> Studio 2005\Projects\feb\feb 4\WixProject11\bin\Debug\msiexec /x
> project.msi"" BinaryKey="CmdExe">
>
>    </CustomAction>
>
> later i publish this as an custom action in a push button
>
> when i run this project am getting an error message stating
> "theres an error in this installer package. A program associated  
> with this
> setup has
> encountered an error.Contact ur vendor"
>
> Pls help me fixing this error
> Is thre any other method of implementing this uninstallation?
> -- 
> View this message in context: 
> http://www.nabble.com/uninstallation-error-tp15328560p15328560.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to