Try: msiexec /a package.msi TARGETDIR=C:\users\volker\test\ Jim -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Volker Enderlein Sent: Monday, June 16, 2008 2:59 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] How to force administrative install to INSTALLDIR
Hi NG, I am using the examples from the wix tutorial. When I try to perform an administrative install with such a package without UI ( msiexec /a package.msi INSTALLDIR=C:\users\volker\test\) it does not install to this given folder. Instead the package is installed to a location where my root directory is (H:\PFiles\test\) where the PFiles component comes from the ProgramFilesFolder directory with short name "PFiles". I searched the archives and documentation but did not came up with a solution. How can I force my package to be installed in the correct directory? Cheers Volker sample package attached <?xml version="1.0" encoding="windows-1252"?> <Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi"> <Product Name="alaska 5.2" Id="A6FD86D1-28AD-4387-B90A-EEB241E7F002" Language="1033" Codepage="1252" Version="5.2.0" Manufacturer="Institute of Mechatronics"> <Package Id="????????-????-????-????-????????????" Keywords="Installer" Description="Test Installer" Comments="alaska is a registered trademark of Institute of Mechatronics." Manufacturer="Institute of Mechatronics" InstallerVersion="100" Languages="1033" Compressed="yes" SummaryCodepage="1252" /> <Media Id="1" Cabinet="Sample.cab" EmbedCab="yes" DiskPrompt="CD-ROM #1" /> <Property Id="DiskPrompt" Value="Test 1.0 Installation [1]" /> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder" Name="PFiles"> <Directory Id="IfmFolder" Name="Test"> <Directory Id="INSTALLDIR" Name="alaska" LongName="Test 1.0"> <Merge Id="VC_User_MFC71_Loc.3B4432BE_1CFD_4D42_9C85_9C9C551C257A" Language="1033" SourceFile="C:\Programme\Gemeinsame Dateien\Merge Modules\VC_User_MFC71_Loc_RTL_X86_---.msm" DiskId="1" /> <Component Id="Test_01" Guid="47EB0E1F-FE57-4953-8E70-2EBCA174A98A"> <File Id="TestEXE" Name="Test.exe" LongName="Test.exe" DiskId="1" Source="Test.exe" Vital="yes"> <Shortcut Id="startmenuTest" Directory="ProgramMenuDir" Name="Test" LongName="Test 1.0" WorkingDirectory="Compositing" Icon="Test.exe" IconIndex="0" /> </File> </Component> </Directory> </Directory> </Directory> <Directory Id="ProgramMenuFolder" Name="PMenu" LongName="Programs"> <Directory Id="ProgramMenuDir" Name="alaska" LongName="Test 1.0" /> </Directory> </Directory> <Feature Id="Compositing" Title="Compositing Module" Description="The Compositing Module" ConfigurableDirectory="INSTALLDIR" Level="1000"> <ComponentRef Id="Test_01" /> <MergeRef Id="VC_User_MFC71_Loc.3B4432BE_1CFD_4D42_9C85_9C9C551C257A" /> </Feature> <UIRef Id="WixUI_Mondo" /> <UIRef Id="WixUI_ErrorProgressText" /> <Icon Id="Test.exe" SourceFile="Test.exe" /> </Product> </Wix> ------------------------------------------------------------------------ - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users