I believe you want to list these properties as the value of the built-in
"SecureCustomProperties" property, so they will be set in the server context as
well.
Try adding something like this to your authoring:
<Property Id="SecureCustomProperties" Value="WEBSITENAME;WEBSITEPORT"/>
Thanks,
Mike Carlson
-----Original Message-----
From: 万 毅 [mailto:[email protected]]
Sent: Tuesday, March 02, 2010 9:31 PM
To: [email protected]
Subject: [WiX-users] Uninstall failure in full UI mode when per Machine
installation is used
Hello, everyone
I am experiencing an strange problem when I install with per Machine scope. I
have the following properties defined to configure the name and port of my IIS
web site.
<Property Id="WEBSITENAME" Value="My Web Site">
<RegistrySearch Id="WebSiteNameInit" Root="HKLM" Key="$(var.Web_RegPath)"
Name="WebSiteName" Type="raw" />
</Property>
<Property Id="WEBSITEPORT" Value="80">
<RegistrySearch Id="WebSiteportInit" Root="HKLM" Key="$(var.Web_RegPath)"
Name="WebSitePort" Type="raw" />
</Property>
I was using per User scope and it worked perfectly. However, when I changed it
to per Machine, strange things start happening. It still works correctly if I
uninstall the product with UILevel 3, but if I try to uninstall the product
with UILevel 5, the msi always try to remove the web site with the default name
and port instead of the modified values in registry. I turned on logging and
found that the properties are correctly populated even in UILevel 5. The msi
just somehow ignored the new property values and keeps using the default ones!
Now I really have no idea what is going on. I hope someone can help me. The
issue is concluded as below.
Condition Uninstall result
NOT ALLUSERS Correct
UILevel=3 AND ALLUSERS Correct
UILevel=5 AND ALLUSERS Incorrect
Thank you in advance.
Yi Wan
_________________________________________________________________
メールをまとめ〜る。他の無料メールもプロバイダーメールも。
http://windows7.jp.msn.com/master/hm-popaggre/default.htm
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users