Hi there

I need to copy a different .exe file dependent on which user installs the application (there are only two users using this app).
So I created two components which install the appropriate .exe file and put a condition on them:
LogonUser = "username"
If I use a Custom Action with that condition, it works fine. However I don't get that components installed properly.

Any other ideas?

0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


What is not working properly?

how about using something like:
Const msiInstallStateAbsent = 2
Const msiInstallStateLocal = 3
Session.ComponentRequestState("ComponentName1") = msiInstallStateLocal
Session.ComponentRequestState("ComponentName2") = msiInstallStateAbsent
Answered 06/27/2006 by: AngelD
Red Belt

Please log in to comment
What tried to say is:
if I put that condition on a VB-Script Custom action (just for testing purposes, a simple script that shows a dialog box for example) it recognizes the currently logged in user and whether it is the right one shows or doesn't show the dialog box.
However if I put the same condition on a component to install the .exe file, it either doesn't get installed at all or installs the wrong component.

Thanks for your further help.
Answered 06/27/2006 by: rpfenninger
Second Degree Green Belt

Please log in to comment

How do you fill the property LogonUser? Do you know if it gets a value or can you display the value?
I remember I once had to use a Set Property Custom Action to fill a property before using it with a condition. In this case Property LogonUser with property value [%USERNAME]

Hope this helps

Answered 06/28/2006 by: RobinV
Senior Yellow Belt

Please log in to comment
What attribute are set on the components and maybe the feature attributes holding the components?

Tried this myself, just added two files in separate components and added the condition to each of them which worked.
condition is used: LogonUser = "<username>"
Attribute on component was set to msidbFeatureAttributesFavorLocal (0)
Answered 06/28/2006 by: AngelD
Red Belt

Please log in to comment
Thank you guys. I solved my problem.
After you guys gave me the idea of showing the content of the LogonUser property on a dialog box, I've noticed, that some user accounts are in upper case and some in lower case [8D]
All I've had to do is to change the condition slightly to
LogonUser~= "username"

Thanks a lot

Answered 06/28/2006 by: rpfenninger
Second Degree Green Belt

Please log in to comment
Answer this question or Comment on this question for clarity