- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Can an installer change the name of a PC?
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
I want the installer to offer the user to rename the PC to something of their choice. Is this possible?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @crash1015 ,
You can have one of the dialogs from the setup asking for Computer-Name to be changed during Setup execution.
To describe it in elaborated manner:
- You can add text-field in any of the dialogs(Where you want it to be) to get new computer name from the user
- Map the text field's text with a property
- Use the property inside powershell custom action to execute Rename-Computer cmdlet
Thanks,
Jenifer
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @crash1015 ,
There is a power-shell cmdlet Rename-Computer that can perform computer-renaming.
You can make use of powershell custom action(with the above cmdlet in .ps1 file) of Installshield to get this work done.
Thanks,
Jenifer
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
That's a very very good idea. But do you know how to make it prompt the user to enter in a new pc name?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @crash1015 ,
You can have one of the dialogs from the setup asking for Computer-Name to be changed during Setup execution.
To describe it in elaborated manner:
- You can add text-field in any of the dialogs(Where you want it to be) to get new computer name from the user
- Map the text field's text with a property
- Use the property inside powershell custom action to execute Rename-Computer cmdlet
Thanks,
Jenifer
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content