I believe that the WiX Quiet CA pattern changes the working directory to be that of the target EXE. I'd have to mock it up to test that though. But if it was me, I'd do some reverse engineering of what adxreg.exe is doing through some profiling and once I understood the actual setup requirements I'd write my own solution that was data driven and supported rollback. You could very well find out that it's doing nothing more then writing some registry values. Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me
----- Original Message ---- From: little.forest <little.for...@ymail.com> To: General discussion for Windows Installer XML toolset. <wix-users@lists.sourceforge.net> Sent: Fri, September 10, 2010 10:39:57 PM Subject: Re: [WiX-users] How to change to a directory and run customaction inside that directory? Thanks Christopher. I appreciate it. I looked at that manual. I actually implemented "type 18 customaction" in the first place. But it didn't work for us. Here is my original code: <Component Id='Component_Adxregistrator' Guid='*'> <File Id='AdxRegistrator' Name='adxreg.exe' Source='adxregistrator.exe' KeyPath="yes" Checksum="yes" /> </Component> <CustomAction Id="DoDllRegistration" FileKey="AdxRegistrator" ExeCommand="/install=MyApp.dll /privileges=admin" Execute="deferred" Return="ignore" HideTarget="no" Impersonate="no" /> <InstallExecuteSequence> <Custom Action="DoDllRegistration" Before="InstallFinalize" >Not Installed</Custom> </InstallExecuteSequence> The problem isn't about Wix. The problem is that 3rd party program. It doesn't support "path in the executable name". So things like "C:\Program Files\adxreg.exe /install" doesn't work. You have to actually in that folder and run "adxreg.exe /install". This is really odd to me. And you're correct that thing is a home-made SelfReg. The program is from "Addin Express". So I wonder if there is a better way to actually "change dir" to the folder, and then run "adxreg.exe /install" from there. If you know there is a way, let me know please. ________________________________ From: Christopher Painter <chr...@deploymentengineering.com> To: General discussion for Windows Installer XML toolset. <wix-users@lists.sourceforge.net> Sent: Fri, September 10, 2010 7:28:40 PM Subject: Re: [WiX-users] How to change to a directory and run customaction inside that directory? VBScript is unacceptable for installs that I write. Have you looked at http://wix.sourceforge.net/manual-wix3/qtexec.htm to see if it meets your needs? BTW, the commandline being called in this example suggests to me additional problems with this installers design. adxreg.exe /install=myapp.dll sounds a lot like a home grown SelfReg pattern which brings all sorts of other problems. Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me ----- Original Message ---- From: little.forest <little.for...@ymail.com> To: General discussion for Windows Installer XML toolset. <wix-users@lists.sourceforge.net> Sent: Fri, September 10, 2010 9:21:05 PM Subject: Re: [WiX-users] How to change to a directory and run customaction inside that directory? Thanks Edwin! Yes, I also found it in here(http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg12592.html ). It works now. But some people said using vbscript in customaction isn't a good idea. so what could be the best solution if not using vbscript? Thanks. ________________________________ From: "Castro, Edwin G. (Hillsboro)" <edwin.cas...@fiserv.com> To: General discussion for Windows Installer XML toolset. <wix-users@lists.sourceforge.net> Sent: Fri, September 10, 2010 5:50:03 PM Subject: Re: [WiX-users] How to change to a directory and run customaction inside that directory? Try: Public Function Main() Dim WshShell Set WshShell = CreateObject("WScript.Shell") WshShell.CurrentDirectory = "C:\Program Files\Common Files\MyApp" WshShell.Run "adxreg.exe /install=myapp.dll" Set WshShell = Nothing End Function Edwin G. Castro Software Developer - Staff Electronic Banking Services Fiserv Office: 503-746-0643 Fax: 503-617-0291 www.fiserv.com Please consider the environment before printing this e-mail > -----Original Message----- > From: little.forest [mailto:little.for...@ymail.com] > > > Anyway, I found type 22(vbscript) maybe the one we need. So I tried it. But it > doesn't work for me. > > I mean, the vbscript itself works, here it is: > ~~~~ > Public Function Main() > Dim WshShell > Set WshShell = WScript.CreateObject("WScript.Shell") > WshShell.CurrentDirectory = "C:\Program Files\Common Files\MyApp" > WshShell.Run "adxreg.exe /install=myapp.dll" > Set WshShell = Nothing > End Function > > > Main > ~~~~ > > > ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users