Jirong How did you make it work? Just use the SourceDir in the ExeCommand?
where is your exe file? Is it under the directory where the msi is? Thanks Shao * * * * * * * * * * *Re: [WiX-users] How to get the current directory of msi is running from?* From: Jirong Hu <jirong...@go...> - 2009-06-12 21:25 Hi Phil The SourceDir worked. Thanks a lot. Jirong -----Original Message----- From: Wilson, Phil [mailto:phil.wil...@wonderware.com] Sent: Thursday, June 11, 2009 4:53 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to get the current directory of msi is running from? You probably want the standard MSI property SourceDir, that or the OriginalDatabase property (the full path to the MSI file) that you'll have to parse a little. Phil Wilson -----Original Message----- From: Jirong Hu [mailto:jirong...@gov.ab.ca] Sent: Thursday, June 11, 2009 3:12 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] How to get the current directory of msi is running from? Both of you are right, and I am able to run the following code snip. But what I get is still "C:\Inetpub\wwwroot\SFS\Configuration\" where ConfiguratorEXE is located. It's not the location where msi file is launched, which can be anywhere user store this msi file. <CustomAction Id="LaunchConfigurationExecutable" FileKey="ConfiguratorEXE" ExeCommand="[$(sys.CURRENTDIR)]configurator.xml "[SFSENVIRONMENT]"" Return="asyncWait"/> Thanks Jirong -----Original Message----- From: David Bartmess [mailto:david.bartm...@wallst.com] Sent: Thursday, June 11, 2009 3:36 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] How to get the current directory of msi is running from? You can use the system variable $(sys.CURRENTDIR) that should get the current working directory. -----Original Message----- From: Rob Mensching [mailto:r...@wixtoolset.org] Sent: Thursday, June 11, 2009 9:50 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to get the current directory of msi is running from? I have no idea why MSDN makes it so difficult to find stuff: http://msdn.microsoft.com/en-us/library/aa368609(VS.85).aspx Jirong Hu wrote: > I am new to MSI so don't understand. I've googled also couldn't find > something like "MSI SDK Formatted". Can you please give me more information? > > Thanks > Jirong > > > -----Original Message----- > From: Rob Mensching [mailto:r...@wixtoolset.org] > Sent: Wednesday, June 10, 2009 4:41 PM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] How to get the current directory of msi is running > from? > > I'd use the Formatted syntax that refers to File/@Ids. See the MSI SDK > Formatted topic for more details. > > Jirong Hu wrote: > >> Hi All >> >> >> >> In the follow wxs, I want the SFSConfigFileEditor.exe get configurator.xml >> (the first parameter) from the current directory where msi file gets >> launched. Something like 'ExeCommand= CurrentDirectory & "configurator.xml >> ... >> >> >> >> How to get that current directory inside wxs? >> >> >> >> <File Id="ConfiguratorEXE" Name="SFSCo~1.exe" >> LongName="SFSConfigFileEditor.exe" Source=".\SFSConfigFileEditor.exe" >> DiskId="1"/> >> >> >> >> <CustomAction Id="LaunchConfigurationExecutable" >> FileKey="ConfiguratorEXE" ExeCommand="configurator.xml >> "[SFSENVIRONMENT]"" Return="asyncWait"/> >> >> >> Thanks >> Jirong Hu >> Build Master >> 780-644-5488 >> >> >> This communication is intended for the use of the recipient to which it is >> addressed, and may contain confidential, personal, and or privileged >> information. Please contact us immediately if you are not the intended >> recipient of this communication, and do not copy, distribute, or take action >> relying on it. Any communication received in error, or subsequent reply, >> should be deleted or destroyed. >> --------------------------------------------------------------------- >> --------- Crystal Reports - New Free Runtime and 30 Day Trial Check >> out the new simplified licensing option that enables unlimited >> royalty-free distribution of the report engine for externally facing >> server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> > > ---------------------------------------------------------------------- > -------- Crystal Reports - New Free Runtime and 30 Day Trial Check out > the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > This communication is intended for the use of the recipient to which it is > addressed, and may contain confidential, personal, and or privileged > information. Please contact us immediately if you are not the intended > recipient of this communication, and do not copy, distribute, or take action > relying on it. Any communication received in error, or subsequent reply, > should be deleted or destroyed. > > ---------------------------------------------------------------------- > -------- Crystal Reports - New Free Runtime and 30 Day Trial Check out > the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment.http://p.sf.net/sfu/businessobjects _______________________________________________ WiX-users mailing listwix-us...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment.http://p.sf.net/sfu/businessobjects _______________________________________________ WiX-users mailing listwix-us...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wix-users This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal, and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment.http://p.sf.net/sfu/businessobjects _______________________________________________ WiX-users mailing listwix-us...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment.http://p.sf.net/sfu/businessobjects _______________________________________________ WiX-users mailing listwix-us...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wix-users This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal, and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Thread View *Thread****Author****Date***[WiX-users] How to get the current directory of msi is running from?<http://sourceforge.net/mailarchive/message.php?msg_id=A31EB99B54D2484AB69480CA86BBEA241610B3D898%40EDM-EXCH-7.lan.local>Jirong Hu <jirong...@go...> *Re: [WiX-users] How to get the current directory of msi is running from?<http://sourceforge.net/mailarchive/message.php?msg_name=4A303660.5030002%40wixtoolset.org> * From: Rob Mensching <r...@wi...> - 2009-06-10 22:41 I'd use the Formatted syntax that refers to File/@Ids. See the MSI SDK Formatted topic for more details. Jirong Hu wrote: > Hi All > > > > In the follow wxs, I want the SFSConfigFileEditor.exe get configurator.xml > (the first parameter) from the current directory where msi file gets > launched. Something like 'ExeCommand= CurrentDirectory & "configurator.xml ... > > > > How to get that current directory inside wxs? > > > > <File Id="ConfiguratorEXE" Name="SFSCo~1.exe" > LongName="SFSConfigFileEditor.exe" Source=".\SFSConfigFileEditor.exe" > DiskId="1"/> > > > > <CustomAction Id="LaunchConfigurationExecutable" FileKey="ConfiguratorEXE" > ExeCommand="configurator.xml "[SFSENVIRONMENT]"" > Return="asyncWait"/> > > > Thanks > Jirong Hu > Build Master > 780-644-5488 > > > This communication is intended for the use of the recipient to which it is > addressed, and may contain confidential, personal, and or privileged > information. Please contact us immediately if you are not the intended > recipient of this communication, and do not copy, distribute, or take action > relying on it. Any communication received in error, or subsequent reply, > should be deleted or destroyed. > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > *Re: [WiX-users] How to get the current directory of msi is running from?<http://sourceforge.net/mailarchive/message.php?msg_name=A31EB99B54D2484AB69480CA86BBEA241610B3D942%40EDM-EXCH-7.lan.local> * From: Jirong Hu <jirong...@go...> - 2009-06-11 13:59 I am new to MSI so don't understand. I've googled also couldn't find something like "MSI SDK Formatted". Can you please give me more information? Thanks Jirong -----Original Message----- From: Rob Mensching [mailto:r...@wixtoolset.org] Sent: Wednesday, June 10, 2009 4:41 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to get the current directory of msi is running from? I'd use the Formatted syntax that refers to File/@Ids. See the MSI SDK Formatted topic for more details. Jirong Hu wrote: > Hi All > > > > In the follow wxs, I want the SFSConfigFileEditor.exe get configurator.xml > (the first parameter) from the current directory where msi file gets > launched. Something like 'ExeCommand= CurrentDirectory & "configurator.xml ... > > > > How to get that current directory inside wxs? > > > > <File Id="ConfiguratorEXE" Name="SFSCo~1.exe" > LongName="SFSConfigFileEditor.exe" Source=".\SFSConfigFileEditor.exe" > DiskId="1"/> > > > > <CustomAction Id="LaunchConfigurationExecutable" FileKey="ConfiguratorEXE" > ExeCommand="configurator.xml "[SFSENVIRONMENT]"" > Return="asyncWait"/> > > > Thanks > Jirong Hu > Build Master > 780-644-5488 > > > This communication is intended for the use of the recipient to which it is > addressed, and may contain confidential, personal, and or privileged > information. Please contact us immediately if you are not the intended > recipient of this communication, and do not copy, distribute, or take action > relying on it. Any communication received in error, or subsequent reply, > should be deleted or destroyed. > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment.http://p.sf.net/sfu/businessobjects _______________________________________________ WiX-users mailing listwix-us...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wix-users This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal, and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. *Re: [WiX-users] How to get the current directory of msi is running from?<http://sourceforge.net/mailarchive/message.php?msg_name=4A3127A3.2030609%40wixtoolset.org> * From: Rob Mensching <r...@wi...> - 2009-06-11 15:50 I have no idea why MSDN makes it so difficult to find stuff: http://msdn.microsoft.com/en-us/library/aa368609(VS.85).aspx Jirong Hu wrote: > I am new to MSI so don't understand. I've googled also couldn't find > something like "MSI SDK Formatted". Can you please give me more information? > > Thanks > Jirong > > > -----Original Message----- > From: Rob Mensching [mailto:r...@wixtoolset.org] > Sent: Wednesday, June 10, 2009 4:41 PM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] How to get the current directory of msi is running > from? > > I'd use the Formatted syntax that refers to File/@Ids. See the MSI SDK > Formatted topic for more details. > > Jirong Hu wrote: > >> Hi All >> >> >> >> In the follow wxs, I want the SFSConfigFileEditor.exe get configurator.xml >> (the first parameter) from the current directory where msi file gets >> launched. Something like 'ExeCommand= CurrentDirectory & "configurator.xml >> ... >> >> >> >> How to get that current directory inside wxs? >> >> >> >> <File Id="ConfiguratorEXE" Name="SFSCo~1.exe" >> LongName="SFSConfigFileEditor.exe" Source=".\SFSConfigFileEditor.exe" >> DiskId="1"/> >> >> >> >> <CustomAction Id="LaunchConfigurationExecutable" FileKey="ConfiguratorEXE" >> ExeCommand="configurator.xml "[SFSENVIRONMENT]"" >> Return="asyncWait"/> >> >> >> Thanks >> Jirong Hu >> Build Master >> 780-644-5488 >> >> >> This communication is intended for the use of the recipient to which it is >> addressed, and may contain confidential, personal, and or privileged >> information. Please contact us immediately if you are not the intended >> recipient of this communication, and do not copy, distribute, or take action >> relying on it. Any communication received in error, or subsequent reply, >> should be deleted or destroyed. >> ------------------------------------------------------------------------------ >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensing option that enables unlimited >> royalty-free distribution of the report engine for externally facing >> server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > This communication is intended for the use of the recipient to which it is > addressed, and may contain confidential, personal, and or privileged > information. Please contact us immediately if you are not the intended > recipient of this communication, and do not copy, distribute, or take action > relying on it. Any communication received in error, or subsequent reply, > should be deleted or destroyed. > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > *Re: [WiX-users] How to get the current directory of msi is running from?<http://sourceforge.net/mailarchive/message.php?msg_name=D3F095514DFF1D4D95DA857CAA91829916FC39EF04%40IS-EXCHANGEC101.wsod.local> * From: David Bartmess <david.bartm...@wa...> - 2009-06-11 21:35 You can use the system variable $(sys.CURRENTDIR) that should get the current working directory. -----Original Message----- From: Rob Mensching [mailto:r...@wixtoolset.org] Sent: Thursday, June 11, 2009 9:50 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to get the current directory of msi is running from? I have no idea why MSDN makes it so difficult to find stuff: http://msdn.microsoft.com/en-us/library/aa368609(VS.85).aspx Jirong Hu wrote: > I am new to MSI so don't understand. I've googled also couldn't find > something like "MSI SDK Formatted". Can you please give me more information? > > Thanks > Jirong > > > -----Original Message----- > From: Rob Mensching [mailto:r...@wixtoolset.org] > Sent: Wednesday, June 10, 2009 4:41 PM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] How to get the current directory of msi is running > from? > > I'd use the Formatted syntax that refers to File/@Ids. See the MSI SDK > Formatted topic for more details. > > Jirong Hu wrote: > >> Hi All >> >> >> >> In the follow wxs, I want the SFSConfigFileEditor.exe get configurator.xml >> (the first parameter) from the current directory where msi file gets >> launched. Something like 'ExeCommand= CurrentDirectory & "configurator.xml >> ... >> >> >> >> How to get that current directory inside wxs? >> >> >> >> <File Id="ConfiguratorEXE" Name="SFSCo~1.exe" >> LongName="SFSConfigFileEditor.exe" Source=".\SFSConfigFileEditor.exe" >> DiskId="1"/> >> >> >> >> <CustomAction Id="LaunchConfigurationExecutable" >> FileKey="ConfiguratorEXE" ExeCommand="configurator.xml >> "[SFSENVIRONMENT]"" Return="asyncWait"/> >> >> >> Thanks >> Jirong Hu >> Build Master >> 780-644-5488 >> >> >> This communication is intended for the use of the recipient to which it is >> addressed, and may contain confidential, personal, and or privileged >> information. Please contact us immediately if you are not the intended >> recipient of this communication, and do not copy, distribute, or take action >> relying on it. Any communication received in error, or subsequent reply, >> should be deleted or destroyed. >> --------------------------------------------------------------------- >> --------- Crystal Reports - New Free Runtime and 30 Day Trial Check >> out the new simplified licensing option that enables unlimited >> royalty-free distribution of the report engine for externally facing >> server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> > > ---------------------------------------------------------------------- > -------- Crystal Reports - New Free Runtime and 30 Day Trial Check out > the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > This communication is intended for the use of the recipient to which it is > addressed, and may contain confidential, personal, and or privileged > information. Please contact us immediately if you are not the intended > recipient of this communication, and do not copy, distribute, or take action > relying on it. Any communication received in error, or subsequent reply, > should be deleted or destroyed. > > ---------------------------------------------------------------------- > -------- Crystal Reports - New Free Runtime and 30 Day Trial Check out > the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment.http://p.sf.net/sfu/businessobjects _______________________________________________ WiX-users mailing listwix-us...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wix-users *Re: [WiX-users] How to get the current directory of msi is running from?<http://sourceforge.net/mailarchive/message.php?msg_name=A31EB99B54D2484AB69480CA86BBEA241610C1AC5F%40EDM-EXCH-7.lan.local> * From: Jirong Hu <jirong...@go...> - 2009-06-11 22:12 Both of you are right, and I am able to run the following code snip. But what I get is still "C:\Inetpub\wwwroot\SFS\Configuration\" where ConfiguratorEXE is located. It's not the location where msi file is launched, which can be anywhere user store this msi file. <CustomAction Id="LaunchConfigurationExecutable" FileKey="ConfiguratorEXE" ExeCommand="[$(sys.CURRENTDIR)]configurator.xml "[SFSENVIRONMENT]"" Return="asyncWait"/> Thanks Jirong -----Original Message----- From: David Bartmess [mailto:david.bartm...@wallst.com] Sent: Thursday, June 11, 2009 3:36 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] How to get the current directory of msi is running from? You can use the system variable $(sys.CURRENTDIR) that should get the current working directory. -----Original Message----- From: Rob Mensching [mailto:r...@wixtoolset.org] Sent: Thursday, June 11, 2009 9:50 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to get the current directory of msi is running from? I have no idea why MSDN makes it so difficult to find stuff: http://msdn.microsoft.com/en-us/library/aa368609(VS.85).aspx Jirong Hu wrote: > I am new to MSI so don't understand. I've googled also couldn't find > something like "MSI SDK Formatted". Can you please give me more information? > > Thanks > Jirong > > > -----Original Message----- > From: Rob Mensching [mailto:r...@wixtoolset.org] > Sent: Wednesday, June 10, 2009 4:41 PM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] How to get the current directory of msi is running > from? > > I'd use the Formatted syntax that refers to File/@Ids. See the MSI SDK > Formatted topic for more details. > > Jirong Hu wrote: > >> Hi All >> >> >> >> In the follow wxs, I want the SFSConfigFileEditor.exe get configurator.xml >> (the first parameter) from the current directory where msi file gets >> launched. Something like 'ExeCommand= CurrentDirectory & "configurator.xml >> ... >> >> >> >> How to get that current directory inside wxs? >> >> >> >> <File Id="ConfiguratorEXE" Name="SFSCo~1.exe" >> LongName="SFSConfigFileEditor.exe" Source=".\SFSConfigFileEditor.exe" >> DiskId="1"/> >> >> >> >> <CustomAction Id="LaunchConfigurationExecutable" >> FileKey="ConfiguratorEXE" ExeCommand="configurator.xml >> "[SFSENVIRONMENT]"" Return="asyncWait"/> >> >> >> Thanks >> Jirong Hu >> Build Master >> 780-644-5488 >> >> >> This communication is intended for the use of the recipient to which it is >> addressed, and may contain confidential, personal, and or privileged >> information. Please contact us immediately if you are not the intended >> recipient of this communication, and do not copy, distribute, or take action >> relying on it. Any communication received in error, or subsequent reply, >> should be deleted or destroyed. >> --------------------------------------------------------------------- >> --------- Crystal Reports - New Free Runtime and 30 Day Trial Check >> out the new simplified licensing option that enables unlimited >> royalty-free distribution of the report engine for externally facing >> server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> > > ---------------------------------------------------------------------- > -------- Crystal Reports - New Free Runtime and 30 Day Trial Check out > the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > This communication is intended for the use of the recipient to which it is > addressed, and may contain confidential, personal, and or privileged > information. Please contact us immediately if you are not the intended > recipient of this communication, and do not copy, distribute, or take action > relying on it. Any communication received in error, or subsequent reply, > should be deleted or destroyed. > > ---------------------------------------------------------------------- > -------- Crystal Reports - New Free Runtime and 30 Day Trial Check out > the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment.http://p.sf.net/sfu/businessobjects _______________________________________________ WiX-users mailing listwix-us...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment.http://p.sf.net/sfu/businessobjects _______________________________________________ WiX-users mailing listwix-us...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wix-users This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal, and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. *Re: [WiX-users] How to get the current directory of msi is running from?<http://sourceforge.net/mailarchive/message.php?msg_name=5C889913FF236E4190093AF280AB4EC40179D86335%40wwlkfmail1.wonderware.com> * From: Wilson, Phil <phil.wil...@wo...> - 2009-06-11 22:53 You probably want the standard MSI property SourceDir, that or the OriginalDatabase property (the full path to the MSI file) that you'll have to parse a little. Phil Wilson -----Original Message----- From: Jirong Hu [mailto:jirong...@gov.ab.ca] Sent: Thursday, June 11, 2009 3:12 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] How to get the current directory of msi is running from? Both of you are right, and I am able to run the following code snip. But what I get is still "C:\Inetpub\wwwroot\SFS\Configuration\" where ConfiguratorEXE is located. It's not the location where msi file is launched, which can be anywhere user store this msi file. <CustomAction Id="LaunchConfigurationExecutable" FileKey="ConfiguratorEXE" ExeCommand="[$(sys.CURRENTDIR)]configurator.xml "[SFSENVIRONMENT]"" Return="asyncWait"/> Thanks Jirong -----Original Message----- From: David Bartmess [mailto:david.bartm...@wallst.com] Sent: Thursday, June 11, 2009 3:36 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] How to get the current directory of msi is running from? You can use the system variable $(sys.CURRENTDIR) that should get the current working directory. -----Original Message----- From: Rob Mensching [mailto:r...@wixtoolset.org] Sent: Thursday, June 11, 2009 9:50 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to get the current directory of msi is running from? I have no idea why MSDN makes it so difficult to find stuff: http://msdn.microsoft.com/en-us/library/aa368609(VS.85).aspx Jirong Hu wrote: > I am new to MSI so don't understand. I've googled also couldn't find > something like "MSI SDK Formatted". Can you please give me more information? > > Thanks > Jirong > > > -----Original Message----- > From: Rob Mensching [mailto:r...@wixtoolset.org] > Sent: Wednesday, June 10, 2009 4:41 PM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] How to get the current directory of msi is running > from? > > I'd use the Formatted syntax that refers to File/@Ids. See the MSI SDK > Formatted topic for more details. > > Jirong Hu wrote: > >> Hi All >> >> >> >> In the follow wxs, I want the SFSConfigFileEditor.exe get configurator.xml >> (the first parameter) from the current directory where msi file gets >> launched. Something like 'ExeCommand= CurrentDirectory & "configurator.xml >> ... >> >> >> >> How to get that current directory inside wxs? >> >> >> >> <File Id="ConfiguratorEXE" Name="SFSCo~1.exe" >> LongName="SFSConfigFileEditor.exe" Source=".\SFSConfigFileEditor.exe" >> DiskId="1"/> >> >> >> >> <CustomAction Id="LaunchConfigurationExecutable" >> FileKey="ConfiguratorEXE" ExeCommand="configurator.xml >> "[SFSENVIRONMENT]"" Return="asyncWait"/> >> >> >> Thanks >> Jirong Hu >> Build Master >> 780-644-5488 >> >> >> This communication is intended for the use of the recipient to which it is >> addressed, and may contain confidential, personal, and or privileged >> information. Please contact us immediately if you are not the intended >> recipient of this communication, and do not copy, distribute, or take action >> relying on it. Any communication received in error, or subsequent reply, >> should be deleted or destroyed. >> --------------------------------------------------------------------- >> --------- Crystal Reports - New Free Runtime and 30 Day Trial Check >> out the new simplified licensing option that enables unlimited >> royalty-free distribution of the report engine for externally facing >> server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> > > ---------------------------------------------------------------------- > -------- Crystal Reports - New Free Runtime and 30 Day Trial Check out > the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > This communication is intended for the use of the recipient to which it is > addressed, and may contain confidential, personal, and or privileged > information. Please contact us immediately if you are not the intended > recipient of this communication, and do not copy, distribute, or take action > relying on it. Any communication received in error, or subsequent reply, > should be deleted or destroyed. > > ---------------------------------------------------------------------- > -------- Crystal Reports - New Free Runtime and 30 Day Trial Check out > the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment.http://p.sf.net/sfu/businessobjects _______________________________________________ WiX-users mailing listwix-us...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment.http://p.sf.net/sfu/businessobjects _______________________________________________ WiX-users mailing listwix-us...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wix-users This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal, and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment.http://p.sf.net/sfu/businessobjects _______________________________________________ WiX-users mailing listwix-us...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wix-users *Re: [WiX-users] How to get the current directory of msi is running from?<http://sourceforge.net/mailarchive/message.php?msg_name=A31EB99B54D2484AB69480CA86BBEA241610C1B063%40EDM-EXCH-7.lan.local> * From: Jirong Hu <jirong...@go...> - 2009-06-12 21:25 Hi Phil The SourceDir worked. Thanks a lot. Jirong -----Original Message----- From: Wilson, Phil [mailto:phil.wil...@wonderware.com] Sent: Thursday, June 11, 2009 4:53 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to get the current directory of msi is running from? You probably want the standard MSI property SourceDir, that or the OriginalDatabase property (the full path to the MSI file) that you'll have to parse a little. Phil Wilson -----Original Message----- From: Jirong Hu [mailto:jirong...@gov.ab.ca] Sent: Thursday, June 11, 2009 3:12 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] How to get the current directory of msi is running from? Both of you are right, and I am able to run the following code snip. But what I get is still "C:\Inetpub\wwwroot\SFS\Configuration\" where ConfiguratorEXE is located. It's not the location where msi file is launched, which can be anywhere user store this msi file. <CustomAction Id="LaunchConfigurationExecutable" FileKey="ConfiguratorEXE" ExeCommand="[$(sys.CURRENTDIR)]configurator.xml "[SFSENVIRONMENT]"" Return="asyncWait"/> Thanks Jirong -----Original Message----- From: David Bartmess [mailto:david.bartm...@wallst.com] Sent: Thursday, June 11, 2009 3:36 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] How to get the current directory of msi is running from? You can use the system variable $(sys.CURRENTDIR) that should get the current working directory. -----Original Message----- From: Rob Mensching [mailto:r...@wixtoolset.org] Sent: Thursday, June 11, 2009 9:50 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to get the current directory of msi is running from? I have no idea why MSDN makes it so difficult to find stuff: http://msdn.microsoft.com/en-us/library/aa368609(VS.85).aspx Jirong Hu wrote: > I am new to MSI so don't understand. I've googled also couldn't find > something like "MSI SDK Formatted". Can you please give me more information? > > Thanks > Jirong > > > -----Original Message----- > From: Rob Mensching [mailto:r...@wixtoolset.org] > Sent: Wednesday, June 10, 2009 4:41 PM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] How to get the current directory of msi is running > from? > > I'd use the Formatted syntax that refers to File/@Ids. See the MSI SDK > Formatted topic for more details. > > Jirong Hu wrote: > >> Hi All >> >> >> >> In the follow wxs, I want the SFSConfigFileEditor.exe get configurator.xml >> (the first parameter) from the current directory where msi file gets >> launched. Something like 'ExeCommand= CurrentDirectory & "configurator.xml >> ... >> >> >> >> How to get that current directory inside wxs? >> >> >> >> <File Id="ConfiguratorEXE" Name="SFSCo~1.exe" >> LongName="SFSConfigFileEditor.exe" Source=".\SFSConfigFileEditor.exe" >> DiskId="1"/> >> >> >> >> <CustomAction Id="LaunchConfigurationExecutable" >> FileKey="ConfiguratorEXE" ExeCommand="configurator.xml >> "[SFSENVIRONMENT]"" Return="asyncWait"/> >> >> >> Thanks >> Jirong Hu >> Build Master >> 780-644-5488 ------------------------------------------------------------------------------ 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