So to early for me, should not have sent this before morning coffee. There is no error, just a warning and it compiles nicely.
I have done the setup to use the quiet cmd CA in the dll, but getting an error when executing. I use [#ConfigFile] to reference the file defined <File Id="ConfigFile", this should work right? And FILEPATH is a property set calling another CA dll that spawns a file browser dialog, this has been tested and confirmed working with just a normal ExeCommand CA. Trying to run the quiet one, it just exits with an error (error given below). The dll is not included in the package, but neither is my other dll and this one runs without problems. The other ting is that these CA are run at the end, after installation and temp files are removed. So if it was a case of not including WixUtilExtension.dll in the installation , then my other CA dll (also not included in the install) should also fail? I'm a bit stumped on this one, any help would be appreciated. This will also help me understand a bit more how the installer works. <Property Id="QtExecCmdLine" /> <CustomAction Id="Set_QtExecCmdLine" Property="QtExecCmdLine" Value =".\Deploy.Tools\XmlPreprocess.exe /i "[#ConfigFile]" /s "[FILEPATH]" /NoLogo" /> <CustomAction Id="QtExec" BinaryKey="WixUtilExtension" DllEntry="CAQuietExec" Execute="immediate" Return="check"/> <Binary Id="WixUtilExtension" SourceFile=".\Deploy.Tools\WixUtilExtension.dll" /> <File Id="ConfigFile" Name="web.config" DiskId="1" Source="web.config" /> MSI error msg: Action 10:38:21: BrowseFiles. Action start 10:38:21: BrowseFiles. Action ended 10:38:24: BrowseFiles. Return value 1. Above my other CA dll is executed. Action 10:38:24: Set_QtExecCmdLine. Action start 10:38:24: Set_QtExecCmdLine. Action ended 10:38:24: Set_QtExecCmdLine. Return value 1. Action 10:38:24: QtExec. Action start 10:38:24: QtExec. Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor. Action QtExec, entry: CAQuietExec, library: C:\DOCUME~1\bak8549\LOCALS~1\Temp\2\MSI6.tmp MSI (c) (30:BC) [10:38:36:045]: Product: TestWS v1.0.0 -- Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor. Action QtExec, entry: CAQuietExec, library: C:\DOCUME~1\bak8549\LOCALS~1\Temp\2\MSI6.tmp Action ended 10:38:36: QtExec. Return value 3. DEBUG: Error 2896: Executing action QtExec failed. Fra: Rob MacFadyen [mailto:[EMAIL PROTECTED] Sendt: 4. november 2006 14:17 Til: Lerudjordet, Morten Minge Emne: RE: [WiX-users] Setting property value with another property value Morten, I think what you need is: <property id="QtExecCmdLine" /> <CustomAction Id="Set_QtExecCmdLine" Property="QtExecCmdLine" Value=".\Deploy.Tools\XmlPreprocess.exe /i [INSTALLPATH][WEBCONFIGFILE] /s [FILEPATH] /NoLogo" /> or even <property id="QtExecCmdLine" /> <property id="WEBCONFIGPATH" /> <property id="SETTINGSPATH" /> <CustomAction id="set_WEBCONFIGPATH" property="WEBCONFIGPATH" value="[INSTALLPATH][WEBCONFIGFILE]" /> <CustomAction id="set_SETTINGSPATH" property="SETTINGSPATH" value="[FILEPATH]" /> <CustomAction Id="Set_QtExecCmdLine" Property="QtExecCmdLine" Value=".\Deploy.Tools\XmlPreprocess.exe /i [WEBCONFIGPATH] /s [SETTINGSPATH] /NoLogo" /> What's being complained about is defining a property and referencing another property in the Value portion of the definition. More or less the following is a no no: <property id="ddd" value="[anyotherprop]"> You always have to do a definition and then an explicit assignment (via a custom action). Regards, Rob ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lerudjordet, Morten Minge Sent: Saturday, November 04, 2006 6:09 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Setting property value with another property value Hi, I have a little problem trying to do this the right way. Because I get a warning compiling when a property value is set to [FILEPATH] and [INSTALLPATH][WEBCONFIGFILE]. The warning message hint that one should set this using a custom action with the property and value field. I have not tried using CA's in this way and are kinda lost. Any help is very appreciated. <Property Id="QtExecCmdLine" Value=".\Deploy.Tools\XmlPreprocess.exe /i ?SetWebConfigPath_Value_Here? /s ?SetSettingsPath_Value_Here? /NoLogo"/> <CustomAction Id="QtExec" BinaryKey="WixUtilExtension" DllEntry="CAQuietExec" Execute="immediate" Return="check"/> <Binary Id="WixUtilExtension" SourceFile="[ProgramFilesFolder]\Windows Installer XML v3\bin\WixUtilExtension.dll" /> <CustomAction Id="SetWebConfigPath" Property="CASetCPath" Value="[INSTALLPATH][WEBCONFIGFILE]" /> <CustomAction Id="SetSettingsPath" Property="CASetSPath" Value="[FILEPATH]" /> Thanks Morten -------------- next part -------------- An HTML attachment was scrubbed... URL: http://sourceforge.net/mailarchive/forum.php?forum=wix-users/attachments /20061106/2d67725e/attachment.html ------------------------------ ------------------------------------------------------------------------ - 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 End of WiX-users Digest, Vol 6, Issue 20 **************************************** ------------------------------------------------------------------------- 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