Define ARPSYSTEMCOMPONENT and create your own uninstall registry key. There
you can set the path to your EXE that will be called by Windows for
uninstall. 
There are some issues with patches though:
http://blogs.msdn.com/heaths/archive/2005/08/05/the-dangers-of-arpsystemcomponent.aspx


ron cooper wrote:
> 
> Dear All,
> 
> I have created my own exe for uninstallation of application, which takes
> care of showing custom pop-ups and taking respective inputs from user.
> Basic idea behind creating my own exe is to modify default uninstall
> dialog
> "Are you sure you want to uninstall this product?" when I try to uninstall
> my application using program menu unstall shortcut.
> I have given call to my own exe when clicking program menu uninstall
> shortcut.
> I want to modify this dialog string to "Are you sure you want to uninstall
> <my_application_name> ?".
> 
> *Is there any way to achieve it?*
> 
> Because somewhere I read that this message is in some function in msi.dll
> and I am not able to modify the dll.
> 
> 
> In my own exe I have taken care of calling windows uninstalling process
> for
> my [ProjectCode].
> It works very fine for me i.e uninstalling the application via program
> menu
> uninstall shortcut.
> 
> 
> 
> *But* the problem occurs when I try to uninstall my application using "Add
> Remove Program".
> It will start unistallation process in separate thread.
> I have given call to my exe using CA which I planned to execute after
> "CostFinallize".
> 
> 
> Here is my code:
> 
> 
> <Product>
>              <Component>
>                          <Directory>
>                               .......
>                               .......
>                               <File
>                                             DiskId='1'
>                                             KeyPath="no"
>                                            Checksum="yes"
>                                            Id='File_FileCleaner'
>                                            Name='FileCleaner.exe'
>                                            Source='FileCleaner.exe'>
>                                          <Shortcut
>                                                    Id="Uninstall"
> 
> Directory="Program_Menu_App_Folder"
>                                                    Name="Uninstall My
> Application"
> 
> WorkingDirectory="INSTALLDIR"
>                                                    Icon="filecleaner.exe"
>                                                    IconIndex="0"/>
> 
>                              </File>
>                        </Directory>
> 
> 
> ............
> ............
> ...........
> ...........
> 
> 
> <CustomAction
>             Id='FileCleaner'
>             BinaryKey='FileCleanerEXE'
>             ExeCommand=''
>             Return='asyncNoWait'
> 
>         />
> <Binary
>             Id="FileCleanerEXE"
>             SourceFile="fileCleaner.exe"
>         />
> <InstallExecuteSequence>
> 
>             <Custom
>                 Action="FileCleaner"
>                 After='CostFinalize'>
>                     Installed AND NOT UPGRADINGPRODUCTCODE
> 
>             </Custom>
> 
> </InstallExecuteSequence>
> 
> 
> Due to CA my own exe gets called during uninstall process.
> If I skip CA, My custom pop-ups do not get called since they are in exe.
> 
> 
> 
> 
> 
> 
> 
> 
> I am thinking of creating one more exe and call this via CA which will
> take
> care of my custom pop-ups.
> I know it is very un-usual way, but this is the way I am finding right
> now.
> 
> 
> 
> 
> 
> Any Idea???
> 
> 
> 
> 
> 
> 
> Regards,
> 
> Ron.
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
> i700
> Series Scanner you'll get full speed at 300 dpi even with all image 
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/How-to-use-my-own-unistall-exe-instead-of-default-uninstall-execution-tp2843814p2844201.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to