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
- :
- Re: copy system na,me to autoexec.bat
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 15, 2008
04:54 PM
copy system na,me to autoexec.bat
Hiiii ,
I want to know if i can copy my system name(computer name) to a bat file(Autoexec.bat) file in Install shield and Basic MSI?
If yes how can i attaint this...
thanks
jagjit
I want to know if i can copy my system name(computer name) to a bat file(Autoexec.bat) file in Install shield and Basic MSI?
If yes how can i attaint this...
thanks
jagjit
(8) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 15, 2008
05:18 PM
If you're using the Environment Variables view, you can use [ComputerName] in your settings.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 15, 2008
05:37 PM
sir in case if i am not using environment variables view...like in IS project then what should be done
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 15, 2008
05:38 PM
If you're talking about an InstallScript project, please search the knowledge base and these forums for "GetComputerName", or perhaps call GetEnvVar to get the value of the COMPUTERNAME environment variable.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 16, 2008
05:46 PM
Sir If i am working on basic MSI project,setting environment variables with[computername] in environment's view will also change or update the autoexec.bat file.
I mean will it automatically change the environment variable to [computername] in batch file(AUTOEXEc.bat)
I mean will it automatically change the environment variable to [computername] in batch file(AUTOEXEc.bat)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 16, 2008
05:50 PM
You will need to use the same capitalization: ComputerName and not "computername".
But yes, on Windows 9x systems, the value will be expanded into autoexec.bat; on Windows NT-based systems (Windows 2000, Windows XP, and the rest) the environment variable data will be written to the registry, as all environment variables are.
But yes, on Windows 9x systems, the value will be expanded into autoexec.bat; on Windows NT-based systems (Windows 2000, Windows XP, and the rest) the environment variable data will be written to the registry, as all environment variables are.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 16, 2008
06:15 PM
sir we are using NT based systems....
As you said environment data is written to the registry.Is this means it is also written to the AUTOEXEC.BAT...
If it aint,Then how can i write the environments data to AUTOEXEC.BAT
As you said environment data is written to the registry.Is this means it is also written to the AUTOEXEC.BAT...
If it aint,Then how can i write the environments data to AUTOEXEC.BAT
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 16, 2008
06:45 PM
On Windows NT-based systems, my understanding is that autoexec.bat is generally not used...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 16, 2008
06:49 PM
but Sir i want to copy the [ComputerName] to AUTOEXEC.bat file......
is there any other way out through which i could attain this
is there any other way out through which i could attain this