Re: [WiX-users] CustomUI change install path not possible?
Bob Arnson wrote: That looks fine but the sequencing you give in an earlier message means that any directory chosen by the user will be overwritten by your DirectorySet custom action. You want to add a condition -- NOT TARGETDIR -- so it doesn't run if the user has already specified one in the UI. Well, good idea, even though this is not the Problem, since it does not come to that point either. As soon as the user clicks the browse-button the error is thrown. Even if the directory changed by the user is overwritten, why are only the directorys of that one msm in user given path and all other files and dirs in the overwritten one. If the custom action overwrites the directory, it should overwrite it for all msm, shouldn' t it? Oliver - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] CustomUI change install path not possible?
Mailinglist wrote: Even if the directory changed by the user is overwritten, why are only the directorys of that one msm in user given path and all other files and dirs in the overwritten one. If the custom action overwrites the directory, it should overwrite it for all msm, shouldn' t it? That depends on the timing of the CA. Directories used as targets in merge modules need to be set early. I suggest looking at a verbose log for the CostFinalize directory dump. -- sig://boB http://joyofsetup.com/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] CustomUI change install path not possible?
Mailinglist wrote: The directory causing the error is the TARGETDIR. The root path of the installation and yes, the main component has a CreateFolder tag for it. Stop, I've just seen that I turned facts. The one MergeModule with the IisExtension gets its folders createt in the right path, all files and files and folders of the other mergemodules and the main setup get installed in the wrong path. Bob wrote: Are you using WixUI_InstallDir as the UI? If not, what does your directory-selection dialog authoring look like? We use a complete custom UI, here is the InstallDirDlg: Dialog Id=CustomUI_InstallDirDlg Width=370 Height=270 Title=!(loc.InstallDirDlg_Title) Control Id=Next Type=PushButton X=236 Y=243 Width=56 Height=17 Default=yes Text=!(loc.WixUINext) Publish Event=NewDialog Value=CustomUI_EwsPropertiesDlg/ /Control Control Id=Back Type=PushButton X=180 Y=243 Width=56 Height=17 Text=!(loc.WixUIBack) Publish Event=NewDialog Value=[WixUI_InstallDirDlg_Back]1/Publish /Control Control Id=Cancel Type=PushButton X=304 Y=243 Width=56 Height=17 Cancel=yes Text=!(loc.WixUICancel) Publish Event=SpawnDialog Value=CustomUI_CancelDlg1/Publish /Control Control Id=Title Type=Text X=15 Y=6 Width=200 Height=15 Transparent=yes NoPrefix=yes Text=!(loc.InstallDirDlgTitle) / Control Id=Description Type=Text X=25 Y=20 Width=200 Height=30 Transparent=yes NoPrefix=yes Text=!(loc.InstallDirDlgDescription) / Control Id=BannerBitmap Type=Bitmap X=0 Y=0 Width=370 Height=44 TabSkip=no Text=!(loc.InstallDirDlgBannerBitmap) / Control Id=BannerLine Type=Line X=0 Y=44 Width=370 Height=0 / Control Id=BottomLine Type=Line X=0 Y=234 Width=370 Height=0 / Control Id=FolderLabel Type=Text X=20 Y=60 Width=290 Height=15 Text=!(loc.InstallDirDlgFolderLabel) / Control Id=Folder Type=Text X=20 Y=80 Width=240 Height=15 Property=_BrowseProperty Text=[[WIXUI_INSTALLDIR]] / Control Id=ChangeFolder Type=PushButton X=20 Y=100 Width=56 Height=17 Text=!(loc.InstallDirDlgChange) Publish Property=_BrowseProperty Value=[WIXUI_INSTALLDIR]1/Publish Publish Event=SpawnDialog Value=[WixUI_InstallDirDlg_Change]1/Publish /Control /Dialog And here follows the BrowseDlg: Dialog Id=CustomUI_BrowseDlg Width=370 Height=270 Title=!(loc.BrowseDlg_Title) Control Id=PathEdit Type=PathEdit X=25 Y=202 Width=320 Height=18 Property=_BrowseProperty Indirect=yes / Control Id=OK Type=PushButton X=304 Y=243 Width=56 Height=17 Default=yes Text=!(loc.WixUIOK) Publish Event=SetTargetPath Value=[_BrowseProperty]1/Publish Publish Event=EndDialog Value=Return1/Publish /Control Control Id=Cancel Type=PushButton X=240 Y=243 Width=56 Height=17 Cancel=yes Text=!(loc.WixUICancel) Publish Event=Reset Value=01/Publish Publish Event=EndDialog Value=Return1/Publish /Control Control Id=ComboLabel Type=Text X=25 Y=58 Width=44 Height=10 TabSkip=no Text=!(loc.BrowseDlgComboLabel) / Control Id=DirectoryCombo Type=DirectoryCombo X=70 Y=55 Width=220 Height=80 Property=_BrowseProperty Indirect=yes Fixed=yes Remote=yes Subscribe Event=IgnoreChange Attribute=IgnoreChange / /Control Control Id=WixUI_Bmp_Up Type=PushButton X=298 Y=55 Width=19 Height=19 ToolTip=!(loc.BrowseDlgWixUI_Bmp_UpTooltip) Icon=yes FixedSize=yes IconSize=16 Text=!(loc.BrowseDlgWixUI_Bmp_Up) Publish Event=DirectoryListUp Value=01/Publish /Control Control Id=NewFolder Type=PushButton X=325 Y=55 Width=19 Height=19 ToolTip=!(loc.BrowseDlgNewFolderTooltip) Icon=yes FixedSize=yes IconSize=16 Text=!(loc.BrowseDlgNewFolder) Publish Event=DirectoryListNew Value=01/Publish /Control Control Id=DirectoryList Type=DirectoryList X=25 Y=83 Width=320 Height=98 Property=_BrowseProperty Sunken=yes Indirect=yes TabSkip=no / Control Id=PathLabel Type=Text X=25 Y=190 Width=320 Height=10 TabSkip=no Text=!(loc.BrowseDlgPathLabel) / Control Id=BannerBitmap Type=Bitmap X=0 Y=0 Width=370 Height=44 TabSkip=no Text=!(loc.BrowseDlgBannerBitmap) / Control Id=BannerLine Type=Line X=0 Y=44 Width=370 Height=0 / Control Id=BottomLine Type=Line X=0 Y=234 Width=370 Height=0 / Control Id=Description Type=Text X=25 Y=23 Width=200 Height=15 Transparent=yes NoPrefix=yes
Re: [WiX-users] CustomUI change install path not possible?
Mailinglist wrote: We use a complete custom UI, here is the InstallDirDlg: That looks fine but the sequencing you give in an earlier message means that any directory chosen by the user will be overwritten by your DirectorySet custom action. You want to add a condition -- NOT TARGETDIR -- so it doesn't run if the user has already specified one in the UI. -- sig://boB http://joyofsetup.com/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] CustomUI change install path not possible?
Mailinglist wrote: The directory causing the error is the TARGETDIR. The root path of the installation and yes, the main component has a CreateFolder tag for it. Stop, I've just seen that I turned facts. The one MergeModule with the IisExtension gets its folders createt in the right path, all files and files and folders of the other mergemodules and the main setup get installed in the wrong path. Are you using WixUI_InstallDir as the UI? If not, what does your directory-selection dialog authoring look like? -- sig://boB http://joyofsetup.com/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] CustomUI change install path not possible?
Hello Bob, When we come to the InstallDirDlg, the directory is shown correctly, if the DirectorySet ca is run early enough. If the user now wishes to customize this path, I get an error 2707, that the path does not exist, when I start up the BrowseDlg. Error 2707 includes the directory causing the error. What is it? The doc says that the directory must be listed in the Directory table. Is it? The directory causing the error is the TARGETDIR. The root path of the installation and yes, the main component has a CreateFolder tag for it. Oliver - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] CustomUI change install path not possible?
Hello Bob, When we come to the InstallDirDlg, the directory is shown correctly, if the DirectorySet ca is run early enough. If the user now wishes to customize this path, I get an error 2707, that the path does not exist, when I start up the BrowseDlg. Error 2707 includes the directory causing the error. What is it? The doc says that the directory must be listed in the Directory table. Is it? The directory causing the error is the TARGETDIR. The root path of the installation and yes, the main component has a CreateFolder tag for it. Stop, I've just seen that I turned facts. The one MergeModule with the IisExtension gets its folders createt in the right path, all files and files and folders of the other mergemodules and the main setup get installed in the wrong path. Oliver - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] CustomUI change install path not possible?
Hello again, I now have the problem, that in our setup we first search if drive e: is present and set the TARGETDIR-Property to a folder on e: otherwise c:. This is done like this: Property Id='NEWINSTALLDIR' Value='C:\' DirectorySearch Id='MSEwsDefaultInstallRoot_Search' Path='E:\' Depth='1'/ /Property CustomAction Id=DirectorySet Property=TARGETDIR Value=[NEWINSTALLDIR]Software\ / InstallExecuteSequence Custom Action='DirectorySet' Before='LaunchConditions'/ /InstallExecuteSequence When we come to the InstallDirDlg, the directory is shown correctly, if the DirectorySet ca is run early enough. If the user now wishes to customize this path, I get an error 2707, that the path does not exist, when I start up the BrowseDlg. It is said, that the customized Path must be set before the CostInitialize [1]. If I schedule it like the BrowseDlg is shown after the CostInitialize I get an error 2732, cause the directory manager is not initialized [2]. If I do not schedule any dialog, part of my files and folders are installed into the directory of DirectorySet, and part of them are installed in the new customized path that the user clicked in the BrowseDlg. I use mergemodules for different parts of our solution. Exactly, the Folders of one MergeModule, which uses the IisExtension, are installed into the customized path, all other files are installed to the path of DirectorySet, which should be overwritten by the Result from the BrowseDlg. Througout our setup we only use one property for rootpath and that is TARGETDIR. Any hints welcome... Oliver [1]http://www.appdeploy.com/msierrors/detail.asp?id=337 [2] http://www.appdeploy.com/msierrors/detail.asp?id=458 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users