Multiple Application Identities - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

idrake
Posts: 2
Joined: Thu Aug 09, 2007 5:58 pm

Multiple Application Identities

I’m creating an installer for my application which must allow the end user to choose an identity for the application. The purpose of this is to hide then intent of the application from other users (i.e. kids) so that they don’t know it exists.

For this purpose, I created a custom dialog with 4 icons in front of 4 radio buttons, one pair for each identity. The user selects the identity they want for the application and on the “Next” button event I assign the Radio Group property to the [ProductName] Property. All is good.

The problem is the application shortcuts. I have 4 shortcuts pointing to the installed exe (one for each identity), but I can’t seem to make them conditional. It seems like shortcuts pointing to the installed exe are bound to the same component which the exe resides, so trying to put them in other components or features doesn’t work. I also tried to use shortcuts to external files, but still referencing the installed exe, and that failed too.

What should I do?

Thanks. BTW, Advanced installer has come along way since I last bought a copy!
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The "ProductName" property is a private property. Private properties are not modified from UI Sequence to Execute Sequence. Read more here:
http://msdn2.microsoft.com/en-us/library/aa371245.aspx

So the value you set for the "ProductName" in UI will be available only in UI, you will see after installation that the "ProductName" is the one you have set in the "Product Details" page.

You can create you own ARP settings in the registry page. In this case you need to select the "Do not show in list" option from "Product Details" page.
On how to set custom ARP settings please see:
http://msdn2.microsoft.com/en-us/library/aa372105.aspx

In this case only in the "Add/Remove (Control Panel)" applet the application will appear under a different name.

Regarding the shortcuts I don't understand why you create 4 shortcuts? However external shortcut can be moved from one component to other (use drag & drop).

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
idrake
Posts: 2
Joined: Thu Aug 09, 2007 5:58 pm

>Regarding the shortcuts I don't understand why you create 4 shortcuts?

Because I have no idea how to dynamically change the shortcut's icon, text, and description based upon the user's identity selection. I figured it would be easier to create a shortcut for each icon and make the installation conditional.

>However external shortcut can be moved from one component to other (use drag & drop).

Yes, I tried that. The shortcuts don't get installed though. You mentioned in an earlier thread that shortcuts won't get installed if the target is not found. Since the target is an installed file, I'm not sure if that's my problem, but the shortcut doesn't get installed even if it's not conditional.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
Since the target is an installed file, I'm not sure if that's my problem, but the shortcut doesn't get installed even if it's not conditional.
I cannot reproduce this. Make sure you don't use an hard coded path for the shortcut target. Use formatted like this: [APPDIR]file.exe.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”