Resending Regards Meera
On Sat, Mar 3, 2012 at 9:25 PM, Meera Jindal <meera.jin...@gmail.com> wrote: > Hi, > > We are using Wix version 2 in our product and at some point in the future > we would be migrating to version 3.5/3.6. > > Our product is localized and for achieving localization we use Wix > bootstrapper(setupbld.exe) to apply a language transform on top of an > English msi. > Hence, when the user doubleclicks a setup.exe(which contains the MSI and > language transforms), I see two files being cached to the directory > specified by the > InstallSource folder(as specified by the value of registry > key > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\<GUID> > . > These two files are the msi and the transform file. > > The product installation works fine. However, after the product > installation if the user double clicks the setup.exe again, > a maintenance mode screen pulls up. > If a user clicks cancel after this dialog pulls up, then the msi in the > InstallSource folder gets deleted. This has the consequence that future > uninstalls or repair/change from the > Add or Remove programs fail with the error "The feature you are trying to > use is on a network resource that is unavailable". The log messages in MSI > log are > > MSI (s) (8C:7C) [20:33:59:072]: Machine policy value 'AllowLockdownPatch' > is 0 > MSI (s) (8C:7C) [20:33:59:072]: Machine policy value 'DisableLUAPatching' > is 0 > MSI (s) (8C:7C) [20:33:59:072]: Using cached product context: machine > assigned for product: BDDF47C439EE2C04ABDCCF98726286F0 > MSI (s) (8C:7C) [20:33:59:072]: Using cached product context: machine > assigned for product: BDDF47C439EE2C04ABDCCF98726286F0 > MSI (s) (8C:7C) [20:33:59:072]: Machine policy value > 'DisableFlyWeightPatching' is 0 > MSI (s) (8C:7C) [20:33:59:072]: Enabling baseline caching for this > transaction since all active patches are MSI 3.0 style MSPs or at least one > MSI 3.0 minor update patch is active > MSI (s) (8C:7C) [20:33:59:072]: Looking for secure file transform: > MSI (s) (8C:7C) [20:33:59:072]: Note: 1: 2343 > MSI (s) (8C:7C) [20:33:59:072]: Unable to create a temp copy of transform > ''. > MSI (s) (8C:7C) [20:33:59:072]: Note: 1: 2203 2: 3: -2147287037 > MSI (s) (8C:7C) [20:33:59:072]: Couldn't find cached transform . Looking > for it at the source. > MSI (s) (8C:7C) [20:33:59:072]: Resolving source. > MSI (s) (8C:7C) [20:33:59:072]: Using cached product context: machine > assigned for product: BDDF47C439EE2C04ABDCCF98726286F8 > MSI (s) (8C:7C) [20:33:59:072]: Using cached product context: machine > assigned for product: BDDF47C439EE2C04ABDCCF98726286F8 > MSI (s) (8C:7C) [20:33:59:072]: Note: 1: 1402 2: > HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer > 3: 2 > MSI (s) (8C:7C) [20:33:59:072]: User policy value 'SearchOrder' is 'nmu' > MSI (s) (8C:7C) [20:33:59:072]: User policy value 'DisableMedia' is 0 > MSI (s) (8C:7C) [20:33:59:072]: Machine policy value 'AllowLockdownMedia' > is 1 > MSI (s) (8C:7C) [20:33:59:072]: SOURCEMGMT: Looking for sourcelist for > product {4C74FDDB-EE93-40C2-BACD-FC8927266898} > MSI (s) (8C:7C) [20:33:59:072]: Using cached product context: machine > assigned for product: BDDF47C439EE2C04ABDCCF98726286F8 > MSI (s) (8C:7C) [20:33:59:072]: SOURCEMGMT: Adding > {4C74FDDB-EE93-40C2-BACD-FC892726680F}; to potential sourcelist list > (pcode;disk;relpath). > MSI (s) (8C:7C) [20:33:59:072]: Using cached product context: machine > assigned for product: BDDF47C439EE2C04ABDCCF98726286F0 > MSI (s) (8C:7C) [20:33:59:072]: SOURCEMGMT: Now checking product > {4C74FDDB-EE93-40C2-BACD-FC8927266898} > MSI (s) (8C:7C) [20:33:59:072]: SOURCEMGMT: Attempting to use > LastUsedSource from source list. > MSI (s) (8C:7C) [20:33:59:072]: SOURCEMGMT: Trying source > C:\ProgramData\Applications\Cache\. > MSI (s) (8C:7C) [20:33:59:072]: Note: 1: 2203 2: > C:\ProgramData\Applications\Cache\{3983C254-9118-46FA-A63E-E71653414BFC}v4.999.2.0.msi > 3: -2147287038 > MSI (s) (8C:7C) [20:33:59:072]: SOURCEMGMT: Source is invalid due to > missing/inaccessible package. > MSI (s) (8C:7C) [20:33:59:072]: Note: 1: 1706 2: -2147483647 3: > {3983C254-9118-46FA-A63E-E71653414BFC}v4.999.2.0.msi > > However, if I enter into the maintenance mode from the change/repair tab > in Add or Remove Programs then the cached MSI does not get deleted. We > explicitly do not > schedule a ResolveSource action. > > My questions are > > 1) Is there any way in which I can prevent the deletion of the cached MSI > file in the InstallSource directory if the user were to double click the > setup.exe to open the maintenance mode and then cancel > the operation? > 2) Currently the MaintainenceDlg opens if the following condition is > satisfied(Installed AND NOT RESUME AND NOT Preselected). Can I change the > condition so that the dialog > does not open if the user double clicks the setup.exe, but opens if the > user were to try it from Add or Remove Programs? > > Apologies for the long email > > Thanks a lot!! > > > > > > ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users