AllUsers Property During Uninstall - Advanced Installer Community
DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

AllUsers Property During Uninstall

Hello,

i need to remove different folder in case of an AllUsers installation or not.

how can i know during the maintenance dialog (during uninstall) if it was installed for allUsers or currentUser?

Also is possible to create a folder based on [%USERNAME] ??

For example:

C:/MyAppCommonFolder/[%USERNAME]

or

C:/MyAppCommonFOlder/Admin

Thank You for your Support!

Best Regards,
Diego.
DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

Re: AllUsers Property During Uninstall

I really need a way to know if package was installed for allUsers during uninstall.

If i try [AllUsers] property it always returns 1 =/
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: AllUsers Property During Uninstall

Hello Diego,

If you want to detect the "Per machine" or "Per user" install type, you could evaluate the ALLUSERS property indeed. Please note that this property should be referenced by all capital letters, as it is a public property. Plase take a look on this article regarding Installer properties : Windows Installer Properties

An ALLUSERS property value of 1 specifies the per-machine installation context.
An ALLUSERS property value of an empty string ("") specifies the per-user installation context.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

Re: AllUsers Property During Uninstall

Hello Sorin,

I have confirmed this i didnt not know "" was for per-user i though the property was not initialized.


Thank You.

Best Regards,
Diego.
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: AllUsers Property During Uninstall

You are welcome!

Let me know if you have any other question.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”