No problem. Come back if you have any questions. As an example, I mention this link to you because by moving your CA from the execute sequence to the UI sequence you've broken your silent installation story.
The next thing on your reading list is: http://blogs.msdn.com/b/robmen/archive/2004/05/20/136530.aspx It's important to understand that this custom action that replaces / with \ is now in the critical execution path. If it fails, the product won't be installed correctly and your application won't work. Therefore I think it's short sighted to say that it's overkill to invest some time to do it right. Regards, Chris ---------------------------------------- From: "Vladimir Yelnikov" <vladimir.yelni...@gmail.com> Sent: Wednesday, March 20, 2013 8:51 AM To: chr...@iswix.com, "General discussion for Windows Installer XML toolset." <wix-users@lists.sourceforge.net> Subject: Re: [WiX-users] Modify Public property from VBScript CustomAction thanks! 2013/3/20 Christopher Painter <chr...@iswix.com> Vladimir, You're problems are not solved, you just don't know what other problems you have are yet. I suggest starting with reading: http://www.installsite.org/pages/en/isnews/200108/index.htm Regards, CHris ---------------------------------------- From: "Vladimir Yelnikov" <vladimir.yelni...@gmail.com> Sent: Wednesday, March 20, 2013 3:59 AM To: "General discussion for Windows Installer XML toolset." <wix-users@lists.sourceforge.net> Subject: Re: [WiX-users] Modify Public property from VBScript CustomAction Thanks for your answer, Creation C++ dll is overkill for our App and described problem. BTW: Problem solved. The custom action can't modify property inside InstallExecuteSequence for some reason. Embedding into InstallUISequence helps. 2013/3/19 Christopher Painter <chr...@iswix.com> > You want: > > Session.Property("PREVIOUS_PATH") = pathToProcess > > But honestly, Script Custom Actions are very fragile. Consider C++ or C# > instead. > > ---------------------------------------- > From: "Vladimir Yelnikov" <vladimir.yelni...@gmail.com> > Sent: Tuesday, March 19, 2013 10:05 AM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Modify Public property from VBScript CustomAction > > Hi everyone. > I try to modify public property from VBScript CustomAction but without any > success: > > <CustomAction Id="ProcessPath" Script="vbscript"> > <![CDATA[ > pathToProcess = Session.Property("PREVIOUS_PATH") > pathToProcess = Replace(pathToProcess, "/", "\") > Session.SetProperty "PREVIOUS_PATH", pathToProcess > ]]> > </CustomAction> > > I tried Session["PREVIOUS_PATH"] = pathToProcess but it didn't work. > > Is it possible to modify property values from script custom action? > > The real problem is legacy application saves pathes with "/" slashes and > when installing new version Installer should copy files to directory with > those slahes (from registry) or default folder. But the path "C:/dir1/ is > interpreted as network location and with C:\dir1\ works perfectly. > > <SetProperty Id="FilesPath" Value="[PREVIOUS_PATH]" After="CostInitialize" > >PREVIOUS_PATH</SetProperty> > > FilePath is a Directory element. PREVIOUS_PATH is initialized with > RegistrySearch element. > > Thank you! > > -- > Best Wishes, > Vladimir > > ---------------------------------------------------------------------------- > -- > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ---------------------------------------------------------------------------- -- > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- Best Wishes, Vladimir Yelnikov ---------------------------------------------------------------------------- -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Best Wishes, Vladimir Yelnikov ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users