[wix-users] Executing an already installed program at install and uninstall time

Phil Wilson phil.wilson at mvps.org
Tue Jun 21 14:38:05 PDT 2016


Assuming that thr actual requirement is to open a text file, I believe the
preferred way is to use the WiX "WixShellExec" DllEntry in the WiXCA Dll,
and set WixShellExecTarget to the target text file. Then it will open the
file with whatever file extension editor the user prefers for text files.
It's the same as opening an internet URL - you don't fire off Chrome or IE
or whatever, you just ShellOpen the URL and IJW. 

Phil W 

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of
Farrukh Waheed
Sent: Tuesday, June 21, 2016 10:11 AM
To: WiX Toolset Users Mailing List
Subject: [wix-users] Executing an already installed program at install and
uninstall time

Hi,
I've tried multiple syntax, but failing, so simply, can anyone please
suggest how to  execute an already installed utility with parameters at
install and uninstall time. Here is template I was following:

<SetProperty.Id=NotePadExe...>
<CustomAction Id=DoAtInstall Property=NotePadExe ExecuteCommand=????../> at
install time <CustomAction.Id=DoAtRemove  Property=NotePadExe
ExecuteCommand=????./> at uninstall time.

<InstallExecuteSequence>
<Custom Action Id=DoAtInstall />
<Custom Action.Id=DoAtRemove >REMOVE=ALL OR REINSTALL=ALL</Custom Action>
</InstallExecuteSequence>

Let's say we have C:\Windows\Notepad.exe, how to pass parameters to it at
install and uninstall time?
Thanks a bunch.

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
http://www.firegiant.com/





More information about the wix-users mailing list