Discussion:
[WiX-users] Installer ignores InstallDir directory change
Joe Tilley
2011-08-11 19:31:02 UTC
Permalink
This issue only seems to occur for certain machines. Most people that use the installer can switch directories with no issue.

However, on my machine, the installer always puts the files into the default directory, even when I change it during the UI sequence (using the WixUI_InstallDir UI).

I looked at the verbose log, and it looks like the server-side of the execute sequence isn't accepting the property containing the new directory selected during the UI sequence.

I get this line in line 330 of the log:
MSI (s) (94:B0) [14:17:26:180]: Ignoring disallowed property INSTALLDIR

I can see the correct property value being passed to the server-side earlier in line 263 of the log:
MSI (c) (F4:38) [14:17:15:705]: Switching to server: NETFRAMEWORK40CLIENT="#1" INSTALLDIR="C:\Program Files (x86)\myDir\" TARGETDIR="C:\" CURRENTDIRECTORY="C:\TEMP" CLIENTUILEVEL="0" CLIENTPROCESSID="1268" USERNAME="IT department" SOURCEDIR="C:\TEMP\" ACTION="INSTALL" EXECUTEACTION="INSTALL" ROOTDRIVE="C:\" INSTALLLEVEL="1" WIXUI_INSTALLDIR_VALID="1" SECONDSEQUENCE="1" ADDLOCAL=ProductFeature


I have an Windows XP virtual machine that I've tried this with, and it all works correctly, which makes me think it might be an admin/privileges issue, but I might be way off on that. I've tried setting the WIXUI_INSTALLDIR property's Secure attribute to yes, thinking that might allow it to cross to the server-side, but I didn't have any luck with that.
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" Secure="yes" />



Any ideas on why the INSTALLDIR property is disallowed on the server-side?

Thanks
_____________________________________

Joe Tilley

FW Murphy

Software Engineer

Office

(918) 317-4130

Email

***@fwmurphy.com







“This message and any attachments may contain FW Murphy information
that is highly confidential, privileged, and exempt from
disclosure. Any recipient other than the intended recipient is
advised that dissemination, distribution, copying, or other use of
this message is strictly prohibited. If you have received this
message in error, please notify the sender immediately, plus delete
the message and any backups.”
Joe Tilley
2011-08-11 20:46:49 UTC
Permalink
Ok, I found out that if I add a Property with the same Id as my install dir's Id and set it to Secure="yes", then the directory change will propagate from client to server during the execute sequence.

<Property Id="INSTALLDIR" Secure="yes" />

_____________________________________
Joe Tilley
FW Murphy
Software Engineer
Office
(918) 317-4130
Email
***@fwmurphy.com


-----Original Message-----
From: Joe Tilley [mailto:***@fwmurphy.com]
Sent: Thursday, August 11, 2011 2:31 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Installer ignores InstallDir directory change

This issue only seems to occur for certain machines. Most people that use the installer can switch directories with no issue.

However, on my machine, the installer always puts the files into the default directory, even when I change it during the UI sequence (using the WixUI_InstallDir UI).

I looked at the verbose log, and it looks like the server-side of the execute sequence isn't accepting the property containing the new directory selected during the UI sequence.

I get this line in line 330 of the log:
MSI (s) (94:B0) [14:17:26:180]: Ignoring disallowed property INSTALLDIR

I can see the correct property value being passed to the server-side earlier in line 263 of the log:
MSI (c) (F4:38) [14:17:15:705]: Switching to server: NETFRAMEWORK40CLIENT="#1" INSTALLDIR="C:\Program Files (x86)\myDir\" TARGETDIR="C:\" CURRENTDIRECTORY="C:\TEMP" CLIENTUILEVEL="0" CLIENTPROCESSID="1268" USERNAME="IT department" SOURCEDIR="C:\TEMP\" ACTION="INSTALL" EXECUTEACTION="INSTALL" ROOTDRIVE="C:\" INSTALLLEVEL="1" WIXUI_INSTALLDIR_VALID="1" SECONDSEQUENCE="1" ADDLOCAL=ProductFeature


I have an Windows XP virtual machine that I've tried this with, and it all works correctly, which makes me think it might be an admin/privileges issue, but I might be way off on that. I've tried setting the WIXUI_INSTALLDIR property's Secure attribute to yes, thinking that might allow it to cross to the server-side, but I didn't have any luck with that.
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" Secure="yes" />



Any ideas on why the INSTALLDIR property is disallowed on the server-side?

Thanks
_____________________________________

Joe Tilley

FW Murphy

Software Engineer

Office

(918) 317-4130

Email

***@fwmurphy.com







“This message and any attachments may contain FW Murphy information
that is highly confidential, privileged, and exempt from
disclosure. Any recipient other than the intended recipient is
advised that dissemination, distribution, copying, or other use of
this message is strictly prohibited. If you have received this
message in error, please notify the sender immediately, plus delete
the message and any backups.”
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

“This message and any attachments may contain FW Murphy information
that is highly confidential, privileged, and exempt from
disclosure. Any recipient other than the intended recipient is
advised that dissemination, distribution, copying, or other use of
this message is strictly prohibited. If you have received this
message in error, please notify the sender immediately, plus delete
the message and any bac
psimms
2014-09-02 13:39:02 UTC
Permalink
I was having the same issue - and this worked for me

thank you!



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Installer-ignores-InstallDir-directory-change-tp6677782p7596631.html
Sent from the wix-users mailing list archive at Nabble.com.

Loading...