1. RegistrySearch is executed when the AppSearch action runs. The AppSearch action usually is one of the very first things executed.
2. I don't think AppSearch will be able to be scheduled deferred which means it won't work for what you are trying to do. 3. It is difficult to impossible to fully integrate a call out to an exe CustomAction into the installer transaction and messaging system. Instead, C/C++ DLLs should be used to read data from MSI tables and call the appropriate APIs in a way that handles install, uninstall, rollback, repair, upgrading and patching. If it isn't apparent, CustomActions that modify machine state take a lot of work to do correctly. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harry Liljeström Sent: Tuesday, February 13, 2007 4:17 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Reboot, when driver interface has been changed Hi, I have following scenario: 1. A deferred InstallDeviceDriver custom action installs device drivers. The custom action checks if the driver interface has been changed? Then it writes a volatile key in the registry, which indicates that a reboot is necessary! <CustomAction Id="InstallDeviceDriver" FileKey="instw2k.exe" ExeCommand="-p "[INSTALLDIR]"" Impersonate="no" Execute="deferred"/> 2. In WiX a property DOREBOOT, contains the registry value of the volatile key value doreboot, if it is written in the registry? <Property Id="DOREBOOT"> <RegistrySearch Id="RebootVolatile" Type="raw" Root="HKLM" Key="SOFTWARE\MyTest\volatilekey" Name="doreboot"/> </Property> 3. The DOREBOOT property is used as ScheduleReboot action condition: <InstallExecuteSequence> <Custom Action="InstallDeviceDriver" After="InstallFiles"> NOT Installed OR UPGRADINGPRODUCTCODE </Custom> <ScheduleReboot Before="InstallFinalize"> DOREBOOT </ScheduleReboot> </InstallExecuteSequence> My questions are: - When is the RegistrySearch launched during installation? - Is it possible to schedule it happen just before ScheduleReboot, in my InstallExecuteSequence? - If this scenario is not possible in WiX? What would be a alternative way of doing this? Thanks in advance, Harry -- View this message in context: http://www.nabble.com/Reboot%2C-when-driver-interface-has-been-changed-tf3220275.html#a8943325 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users