Hi Sebastian, Thanks for your tip. I tried to change the Ids and GUIDs for that weird folder. And the problem is resolved! It can be copied to the defined the path.
It is really weird. But the problem is fixed by this way. Cheers! Chunyan -----Ursprüngliche Nachricht----- Von: Sebastian Brand (Instyler Software) [mailto:wix+us...@instyler.com] Gesendet: Dienstag, 29. September 2009 09:47 An: 'General discussion for Windows Installer XML toolset.' Betreff: Re: [WiX-users] Folder not install in define path Hi, Have you tried to changing the IDs and Guids of the SQL folder and files? Are there some other folder/files/components with the same Ids? (Should give compiler warnings). Otherwise I'm pretty much in the dark about this. Maybe the verbose log of the msi file can help. Best regards, Sebastian Brand Deployment consultant E-Mail: sebast...@instyler.com Instyler Setup - Creating WiX-based MSI installations, elegantly. http://www.instyler.com -----Original Message----- From: Jiang, Chunyan (GE Healthcare) [mailto:chunyan.ji...@ge.com] Sent: Tuesday, September 29, 2009 09:26 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Folder not install in define path Hi Sebastian, Thank you for your reply. The snippet is: <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="APPLICATIONFOLDER" Name="ViewPoint6"> ........Some other folders........... <Directory Id="SQL" Name="SQL"> <Component Id="SQLFolder" Guid="BDDD9C07-2D4A-47E5-A5F8-AB26588C12CA"> <File Id="standard.log" Name="standard.log" Source="$(var.DataDir)\DB\standard.log" /> <File Id="standard.db" Name="standard.db" Source="$(var.DataDir)\DB\standard.db" /> </Component> </Directory> .........Some other folders....... </Directory> </Directory> ....... <ComponentRef Id="SQLFolder" /> ....... And in the other wxs, there is: <Property Id="WIXUI_INSTALLDIR" Value="APPLICATIONFOLDER" /> <Control Id="Folder" Type="PathEdit" X="20" Y="100" Width="320" Height="18" Property="WIXUI_INSTALLDIR" Indirect="yes" /> <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.AdvancedWelcomeEulaDlgInstall)"> <Publish Event="EndDialog" Value="Return">999</Publish> </Control> The other folders are pretty same as this weird "SQL" folder. User can change the path in "PathEdit", then click "Next". The installation will start. All other files are copied to changed path, say PathB, only the two files in "SQL" folder. It is still copied to original "APPLICATIONFOLDER" Regards, Chunyan -----Ursprüngliche Nachricht----- Von: Sebastian Brand (Instyler Software) [mailto:wix+us...@instyler.com] Gesendet: Montag, 28. September 2009 16:30 An: 'General discussion for Windows Installer XML toolset.' Betreff: Re: [WiX-users] Folder not install in define path Still a wierd behavior :) And what do these two files have in common? There must be something that's different from the other files. Can you post the .wxs snippet with all <file> elements? Best regards, Sebastian Brand Deployment consultant E-Mail: sebast...@instyler.com Instyler Setup - Creating WiX-based MSI installations, elegantly. http://www.instyler.com -----Original Message----- From: Jiang, Chunyan (GE Healthcare) [mailto:chunyan.ji...@ge.com] Sent: Monday, September 28, 2009 16:22 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Folder not install in define path Thanks to Sebastian. The files not changing Path is as below: APPLICATIONDIR\SQL\standard.db APPLICATIONDIR\SQL\standard.log I changed the APPLICATIONDIR as PathB during the installation. But the above two files are still installed in PathA as defined in the wxs file. And I didn't see the secure property there. Best regards, Chunyan -----Ursprüngliche Nachricht----- Von: Sebastian Brand (Instyler Software) [mailto:wix+us...@instyler.com] Gesendet: Montag, 28. September 2009 16:11 An: 'General discussion for Windows Installer XML toolset.' Betreff: Re: [WiX-users] Folder not install in define path Can you see any pattern of the files not having the Path changed? Is the path stored in a public secure property? (Uppercase property name and @Secure=yes) Best regards, Sebastian Brand Deployment consultant E-Mail: sebast...@instyler.com Instyler Setup - Creating WiX-based MSI installations, elegantly. http://www.instyler.com -----Original Message----- From: Jiang, Chunyan (GE Healthcare) [mailto:chunyan.ji...@ge.com] Sent: Monday, September 28, 2009 15:07 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Folder not install in define path Hi Wix-users, There is a weird thing happend in my wix installer. I define a path for files installing in the main wxs, say PathA. And during the installaion the user can change the path and install files to another path, say PathB. Most files are installed correctly in the user changed path PathB. However, there are several files still installed in the main wxs PathA. I checked the log file. It shows there are some files installed in PathA. But there is no error message. In the main wxs, there is no special define for those incorrect install files. Why does this weird thing happen? How can I figure this problem? Best regards, Chunyan ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry® 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/devconf _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry® 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/devconf _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry® 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/devconf _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry® 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/devconf _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry® 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/devconf _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Come build with us! The BlackBerry® 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/devconf _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Come build with us! The BlackBerry® 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/devconf _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users