This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Setting 'Target' of an ini-file to [COMPUTERNAME]
Subscribe
- 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
‎May 28, 2014
06:25 AM
Setting 'Target' of an ini-file to [COMPUTERNAME]
Hello everyone,
in my Basic MSI Project I inserted an ini-file in the 'INI File Changes' view.
On the target system the ini-file should be created in a subfolder of the [INSTALLDIR]. Subfolders name should be the name of the computer. So I set the 'Target'-property of the ini-file to '[INSTALLDIR]blabla\[COMPUTERNAME]'. At runtime the installer created the folder '...\blabla\[COMPUTERNAME]'. I was hoping to find a folder '...\blabla\rwe-pc', because the name of the computer was 'rwe-pc'.
I also tried to set the 'Target' property of the ini-file to
and so on, nothing helps.
If anyone knows to resolve the problem please let me know.
in my Basic MSI Project I inserted an ini-file in the 'INI File Changes' view.
On the target system the ini-file should be created in a subfolder of the [INSTALLDIR]. Subfolders name should be the name of the computer. So I set the 'Target'-property of the ini-file to '[INSTALLDIR]blabla\[COMPUTERNAME]'. At runtime the installer created the folder '...\blabla\[COMPUTERNAME]'. I was hoping to find a folder '...\blabla\rwe-pc', because the name of the computer was 'rwe-pc'.
I also tried to set the 'Target' property of the ini-file to
- '[INSTALLDIR]blabla\%COMPUTERNAME%'
- '[INSTALLDIR]blabla\[%COMPUTERNAME%]'
and so on, nothing helps.
If anyone knows to resolve the problem please let me know.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 02, 2014
02:34 AM
Slight syntax problem. Try
either should work equally well.
[INSTALLDIR]blabla\[%COMPUTERNAME]
or[INSTALLDIR]blabla\[ComputerName]
either should work equally well.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 10, 2014
05:26 AM
DanGalender wrote:
Slight syntax problem. Try[INSTALLDIR]blabla\[%COMPUTERNAME]or[INSTALLDIR]blabla\[ComputerName]
either should work equally well.
Thanks for reply, but: doesn't work :mad:
I think that InstallShield is not able to solve or to redirect the syntax at this place.
Any other suggestions?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 10, 2014
05:50 AM
1. Create custom Action ( 35)
Directory Name = PCNAME
Directory Value = [INSTALLDIR]blabla\[ComputerName]
place this in the sequence before InstallInitialize
2. Go to your ini file and change the target to [PCNAME]
works fine.
Jeroen
Directory Name = PCNAME
Directory Value = [INSTALLDIR]blabla\[ComputerName]
place this in the sequence before InstallInitialize
2. Go to your ini file and change the target to [PCNAME]
works fine.
Jeroen
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 10, 2014
08:27 AM
jaybee96 wrote:
1. Create custom Action ( 35)
Directory Name = PCNAME
Directory Value = [INSTALLDIR]blabla\[ComputerName]
place this in the sequence before InstallInitialize
2. Go to your ini file and change the target to [PCNAME]
works fine.
Jeroen
Hi Jeroen,
works fine, thanks a lot 😄