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!

enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

Name and Organization dialog box

During the installation, I want the user to input his name and his organization in a dialog box, may I know is this doable in Advanced Installer? I checked help but could find no clue.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Currently this dialog is available only when you use the Serial Number Validation feature. However, I have added this feature to our TODO list and it will be available in a future version of Advanced Installer.

Thank you for your suggestion.

Until then this can be done by creating a custom dialog or modifying an existing one in the "Dialogs" page. You simply add two Static Text controls ("User Name" and "Organization") and two Edit boxes.

We have a tutorial for creating a custom dialog, please take a look:
http://advancedinstaller.com/user-guide ... ditor.html

Note that you can create a custom dialog only in an Enterprise project.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

cosmin wrote:Hi,

Currently this dialog is available only when you use the Serial Number Validation feature. However, I have added this feature to our TODO list and it will be available in a future version of Advanced Installer.

Thank you for your suggestion.

Until then this can be done by creating a custom dialog or modifying an existing one in the "Dialogs" page. You simply add two Static Text controls ("User Name" and "Organization") and two Edit boxes.

We have a tutorial for creating a custom dialog, please take a look:
http://advancedinstaller.com/user-guide ... ditor.html

Note that you can create a custom dialog only in an Enterprise project.

Regards,
Cosmin
Thank you for information. I can now
  • Design the user name and organization dialog box
  • Assign the property name of the user name and organization text box to the default [LogonUser] and [CompanyName] registry keys.
However, I need to be able to store the values input by the users to the registry keys under "Current user/Local machine->Software->Manufacturer=>ProductName->Settings->UserName" and machine->Software->Manufacturer=>ProductName->Settings->Organization",

I will use the information from these two keys for display purpose ( instead of reading the [LogonUser] and [CompanyName] keys) when my application launches.

I will appreciate any help in this matter. Thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
However, I need to be able to store the values input by the users to the registry keys under "Current user/Local machine->Software->Manufacturer=>ProductName->Settings->UserName" and machine->Software->Manufacturer=>ProductName->Settings->Organization",
Here are the steps:
- you set the property of the user name edit box in the custom dialog to USERNAME (in the "Properties" section of the edit box in the "Property Name" field)
- in the "Registry" page you go to "Current user/Local machine->Software->Manufacturer->ProductName" and create the "Settings" registry key
- in the "Settings" key you create a new registry value like this:

Code: Select all

Name: Username
Value: [USERNAME]
- you repeat these steps for the "Organization" registry value

You can read more about the "Registry" page here:
http://www.advancedinstaller.com/user-g ... istry.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

cosmin wrote:Hi,
However, I need to be able to store the values input by the users to the registry keys under "Current user/Local machine->Software->Manufacturer=>ProductName->Settings->UserName" and machine->Software->Manufacturer=>ProductName->Settings->Organization",
Here are the steps:
- you set the property of the user name edit box in the custom dialog to USERNAME (in the "Properties" section of the edit box in the "Property Name" field)
- in the "Registry" page you go to "Current user/Local machine->Software->Manufacturer->ProductName" and create the "Settings" registry key
- in the "Settings" key you create a new registry value like this:

Code: Select all

Name: Username
Value: [USERNAME]
- you repeat these steps for the "Organization" registry value

You can read more about the "Registry" page here:
http://www.advancedinstaller.com/user-g ... istry.html

Regards,
Cosmin
Great reply. I think I managed to get that part done.

However, I have another question. For the custom defined [USERNAME] and [ORGANIZATION], when that dialog box is brought up, they should be defaulted to the values in "User Information->USERNAME" and "User Information->COMPANYNAME".

Is there anyway to do this?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

In order to give the Edit box controls default values you can use these properties in the "Property Name" field:

Code: Select all

USERNAME (for the user name)
COMPANYNAME (for organization)
Note that these properties don't need to be initialized in the "Install Parameters" page.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

cosmin wrote:Hi,

In order to give the Edit box controls default values you can use these properties in the "Property Name" field:

Code: Select all

USERNAME (for the user name)
COMPANYNAME (for organization)
Note that these properties don't need to be initialized in the "Install Parameters" page.

Regards,
Thank you for your help.

However, i afraid that if you use the "USERNAME" registry and modify it directly, will it have other consequences? For example, will it change the logon information? Or next time when the user installs an app that asks for user name, then what is presented to him maybe the new, modified user name. This may not be what I want.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
However, i afraid that if you use the "USERNAME" registry and modify it directly, will it have other consequences?
Note that the properties USERNAME and COMPANYNAME are set by Windows Installer from the registry at runtime. Any change made to these properties during the installation process will not have any effect on the values stored in the registry.

However, the values of these properties can be stored in the your own custom registry values ("Software -> Manufacturer -> ProductName -> Settings -> UserName" and "Software -> Manufacturer -> ProductName -> Settings -> Organization").

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”