|
|
|
Anu Dev
|
Hi
How to change the installation to point to C drive, rather than to programfiles or any other directory <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> Is there any easy way to do it. Regards Anweshi ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users |
||||||||||||||||
|
Wilson, Phil
|
What's special about the C: drive? Maybe you need the ROOTDRIVE or WindowsVolume property.
Phil Wilson -----Original Message----- From: Anu Dev [mailto:[hidden email]] Sent: Monday, November 02, 2009 6:49 AM To: WIX Subject: [WiX-users] How to change the installation to point to C:\ Hi How to change the installation to point to C drive, rather than to programfiles or any other directory <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> Is there any easy way to do it. Regards Anweshi ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users *** Confidentiality Notice: This e-mail, including any associated or attached files, is intended solely for the individual or entity to which it is addressed. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify the sender immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person. This email comes from a division of the Invensys Group, owned by Invensys plc, which is a company registered in England and Wales with its registered office at Portland House, Bressenden Place, London, SW1E 5BF (Registered number 166023). For a list of European legal entities within the Invensys Group, please go to http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail [hidden email]. This e-mail and any attachments thereto may be subject to the terms of any agreements between Invensys (and/or its subsidiaries and affiliates) and the recipient (and/or its subsidiaries and affiliates). ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users |
||||||||||||||||
|
Anu Dev
|
Sorry for not being clear..
I would like to have the installation in my custom folder "XYZ" rather than in ProgramFiles folder ie., something like C:\XYZ. I have tried using this <Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='WinVol' Name='WinVol' LongName='WindowsVolume'> but the installer aborts in between :(. Any help would be very appreciated.. Its very urgent :(.... Regards Anweshi ________________________________ From: "Wilson, Phil" <[hidden email]> To: General discussion for Windows Installer XML toolset. <[hidden email]> Sent: Mon, November 2, 2009 10:56:18 PM Subject: Re: [WiX-users] How to change the installation to point to C:\ What's special about the C: drive? Maybe you need the ROOTDRIVE or WindowsVolume property. Phil Wilson -----Original Message----- From: Anu Dev [mailto:[hidden email]] Sent: Monday, November 02, 2009 6:49 AM To: WIX Subject: [WiX-users] How to change the installation to point to C:\ Hi How to change the installation to point to C drive, rather than to programfiles or any other directory <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> Is there any easy way to do it. Regards Anweshi ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users *** Confidentiality Notice: This e-mail, including any associated or attached files, is intended solely for the individual or entity to which it is addressed. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify the sender immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person. This email comes from a division of the Invensys Group, owned by Invensys plc, which is a company registered in England and Wales with its registered office at Portland House, Bressenden Place, London, SW1E 5BF (Registered number 166023). For a list of European legal entities within the Invensys Group, please go to http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail [hidden email]. This e-mail and any attachments thereto may be subject to the terms of any agreements between Invensys (and/or its subsidiaries and affiliates) and the recipient (and/or its subsidiaries and affiliates). ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users |
||||||||||||||||
|
Wilson, Phil
|
Is this an absolute requirement? By which I mean that if you require this behavior then you will be disabling browse choices and forcing TARGETDIR to be what you want.
It depends what C: is intended to be. If it means you want to install it to the same drive as Windows then you don't use the ProgramFilesFolder property. Instead you use the WindowsVolume property as the basis for the install location. If you are forcing the install location then you'd need a custom action that sets TARGETDIR to [WindowsVolume]XYZ. Phil Wilson -----Original Message----- From: Anu Dev [mailto:[hidden email]] Sent: Tuesday, November 03, 2009 10:07 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to change the installation to point to C:\ Sorry for not being clear.. I would like to have the installation in my custom folder "XYZ" rather than in ProgramFiles folder ie., something like C:\XYZ. I have tried using this <Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='WinVol' Name='WinVol' LongName='WindowsVolume'> but the installer aborts in between :(. Any help would be very appreciated.. Its very urgent :(.... Regards Anweshi ________________________________ From: "Wilson, Phil" <[hidden email]> To: General discussion for Windows Installer XML toolset. <[hidden email]> Sent: Mon, November 2, 2009 10:56:18 PM Subject: Re: [WiX-users] How to change the installation to point to C:\ What's special about the C: drive? Maybe you need the ROOTDRIVE or WindowsVolume property. Phil Wilson -----Original Message----- From: Anu Dev [mailto:[hidden email]] Sent: Monday, November 02, 2009 6:49 AM To: WIX Subject: [WiX-users] How to change the installation to point to C:\ Hi How to change the installation to point to C drive, rather than to programfiles or any other directory <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> Is there any easy way to do it. Regards Anweshi ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users *** Confidentiality Notice: This e-mail, including any associated or attached files, is intended solely for the individual or entity to which it is addressed. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify the sender immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person. This email comes from a division of the Invensys Group, owned by Invensys plc, which is a company registered in England and Wales with its registered office at Portland House, Bressenden Place, London, SW1E 5BF (Registered number 166023). For a list of European legal entities within the Invensys Group, please go to http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail [hidden email]. This e-mail and any attachments thereto may be subject to the terms of any agreements between Invensys (and/or its subsidiaries and affiliates) and the recipient (and/or its subsidiaries and affiliates). ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users *** Confidentiality Notice: This e-mail, including any associated or attached files, is intended solely for the individual or entity to which it is addressed. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify the sender immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person. This email comes from a division of the Invensys Group, owned by Invensys plc, which is a company registered in England and Wales with its registered office at Portland House, Bressenden Place, London, SW1E 5BF (Registered number 166023). For a list of European legal entities within the Invensys Group, please go to http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail [hidden email]. This e-mail and any attachments thereto may be subject to the terms of any agreements between Invensys (and/or its subsidiaries and affiliates) and the recipient (and/or its subsidiaries and affiliates). ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users |
||||||||||||||||
|
dB.
|
In reply to this post
by Anu Dev
It's tricky. There's a product out there that belongs to a very big corporation (not Microsoft), that has severe complications when you tell it that it should be putting logs into a path with parenthesis. Because we need those logs, we needed to put our software into a path without parenthesis. On a 64-bit machine you have (x86) for 32-bit applications, so we break. We had to solve this.
You can't just say C:\ because not all machines have C:\. You cannot take [SystemDrive] because those are often small system disks. So we take [ProgramFiles] and figure out its parent path with a CA from http://msiext.codeplex.com (SystemTools::Win32_GetParentDirectory). <CustomAction Id="SetRootFolder" Return="check" Execute="firstSequence" Property="ROOTFOLDER" Value="[ProgramFilesFolder]" /> <CustomAction Id="SetRootFolderParent" Property="WIN32_DIRECTORY" Value="[ROOTFOLDER]" Execute="firstSequence" /> <CustomAction Id="ResolveRootFolderParent" BinaryKey="SystemTools" DllEntry="Win32_GetParentDirectory" Return="check" Execute="firstSequence" /> <CustomAction Id="SetRootFolderFromParent" Property="ROOTFOLDER" Value="[WIN32_PARENT_DIRECTORY]" Execute="firstSequence" /> <!-- set the install location from the previously recorded location in registry for upgrade --> <CustomAction Id="SetInstallLocationFromInstalledProductLocation" Return="check" Execute="firstSequence" Property="INSTALLLOCATION" Value="[INSTALLEDPRODUCTLOCATION]" /> <InstallExecuteSequence> <!-- set the root folder to the parent of [ProgramFilesFolder] --> <Custom Action="SetRootFolder" After="LaunchConditions">NOT ROOTFOLDER AND NOT INSTALLEDPRODUCTLOCATION</Custom> <Custom Action="SetRootFolderParent" After="SetRootFolder">NOT INSTALLEDPRODUCTLOCATION</Custom> <Custom Action="ResolveRootFolderParent" After="SetRootFolderParent">NOT INSTALLEDPRODUCTLOCATION</Custom> <Custom Action="SetRootFolderFromParent" After="ResolveRootFolderParent">WIN32_PARENT_DIRECTORY AND NOT INSTALLEDPRODUCTLOCATION</Custom> <!-- set the installation location from a previously installed version --> <Custom Action="SetInstallLocationFromInstalledProductLocation" After="SetMaintenance">INSTALLEDPRODUCTLOCATION</Custom> </InstallExecuteSequence> If your program files is D:\Program Files (x86), we get D:\, etc. Hope this helps, Cheers dB. dB. @ dblock.org Moscow|Geneva|Seattle|New York -----Original Message----- From: Anu Dev [mailto:[hidden email]] Sent: Monday, November 02, 2009 9:49 AM To: WIX Subject: [WiX-users] How to change the installation to point to C:\ Hi How to change the installation to point to C drive, rather than to programfiles or any other directory <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> Is there any easy way to do it. Regards Anweshi ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users |
||||||||||||||||
|
Neil Sleightholm
|
If you wanted to make it simpler you could use ROOTDIR which is the
drive with the most free space. Neil Neil Sleightholm [hidden email] On 21 Nov 2009, at 00:54, "dB." <[hidden email]> wrote: > It's tricky. There's a product out there that belongs to a very big > corporation (not Microsoft), that has severe complications when you > tell it that it should be putting logs into a path with parenthesis. > Because we need those logs, we needed to put our software into a > path without parenthesis. On a 64-bit machine you have (x86) for 32- > bit applications, so we break. We had to solve this. > > You can't just say C:\ because not all machines have C:\. You cannot > take [SystemDrive] because those are often small system disks. So we > take [ProgramFiles] and figure out its parent path with a CA from http://msiext.codeplex.com > (SystemTools::Win32_GetParentDirectory). > > <CustomAction Id="SetRootFolder" Return="check" > Execute="firstSequence" Property="ROOTFOLDER" > Value="[ProgramFilesFolder]" /> > <CustomAction Id="SetRootFolderParent" Property="WIN32_DIRECTORY" > Value="[ROOTFOLDER]" Execute="firstSequence" /> > <CustomAction Id="ResolveRootFolderParent" > BinaryKey="SystemTools" DllEntry="Win32_GetParentDirectory" > Return="check" Execute="firstSequence" /> > <CustomAction Id="SetRootFolderFromParent" Property="ROOTFOLDER" > Value="[WIN32_PARENT_DIRECTORY]" Execute="firstSequence" /> > > <!-- set the install location from the previously recorded > location in registry for upgrade --> > <CustomAction Id="SetInstallLocationFromInstalledProductLocation" > Return="check" Execute="firstSequence" Property="INSTALLLOCATION" > Value="[INSTALLEDPRODUCTLOCATION]" /> > > <InstallExecuteSequence> > <!-- set the root folder to the parent of [ProgramFilesFolder] > --> > <Custom Action="SetRootFolder" After="LaunchConditions">NOT > ROOTFOLDER AND NOT INSTALLEDPRODUCTLOCATION</Custom> > <Custom Action="SetRootFolderParent" After="SetRootFolder">NOT > INSTALLEDPRODUCTLOCATION</Custom> > <Custom Action="ResolveRootFolderParent" > After="SetRootFolderParent">NOT INSTALLEDPRODUCTLOCATION</Custom> > <Custom Action="SetRootFolderFromParent" > After="ResolveRootFolderParent">WIN32_PARENT_DIRECTORY AND NOT > INSTALLEDPRODUCTLOCATION</Custom> > <!-- set the installation location from a previously installed > version --> > <Custom Action="SetInstallLocationFromInstalledProductLocation" > After="SetMaintenance">INSTALLEDPRODUCTLOCATION</Custom> > </InstallExecuteSequence> > > If your program files is D:\Program Files (x86), we get D:\, etc. > > Hope this helps, > > Cheers > dB. > > dB. @ dblock.org > Moscow|Geneva|Seattle|New York > > > > -----Original Message----- > From: Anu Dev [mailto:[hidden email]] > Sent: Monday, November 02, 2009 9:49 AM > To: WIX > Subject: [WiX-users] How to change the installation to point to C:\ > > Hi > > How to change the installation to point to C drive, rather than to > programfiles or any other directory > > <Directory Id="TARGETDIR" Name="SourceDir"> > <Directory Id="ProgramFilesFolder"> > > Is there any easy way to do it. > > Regards > Anweshi > > > > --- > --- > --- > --------------------------------------------------------------------- > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > WiX-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/wix-users > > --- > --- > --- > --------------------------------------------------------------------- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > WiX-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/wix-users |
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |