MSFN Forum: %computername% variable? - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

%computername% variable? Rate Topic: -----

#1 User is offline   jimanny 

  • Newbie
  • Group: Members
  • Posts: 30
  • Joined: 01-November 04

Posted 23 January 2005 - 06:09 PM

I'm trying out WIHU for my unattended install and I really like it.

One question: Say I change the computer name in the GUI. Is there a variable for the computer name that I can send to an application during install?

Thanks


#2 User is offline   BenjaminKalytta 

  • Developer
  • PipPipPipPip
  • Group: Members
  • Posts: 609
  • Joined: 08-June 04

Posted 23 January 2005 - 07:02 PM

I added new Environment Variable %NewComputerName%.

Benjamin Kalytta

#3 User is offline   jimanny 

  • Newbie
  • Group: Members
  • Posts: 30
  • Joined: 01-November 04

Posted 23 January 2005 - 11:32 PM

Hey that works perfect! Thanks for the quick reply. This is now my favorite post-installer. Are there other useful variables? Is there a list somewhere?

-jimanny

#4 User is offline   BenjaminKalytta 

  • Developer
  • PipPipPipPip
  • Group: Members
  • Posts: 609
  • Joined: 08-June 04

Posted 24 January 2005 - 06:13 AM

There are many additional environment variables.

Following variables which are valid within [users] section:
ThisUser, ThisProfile, ThisHome

General variables (see wihu.exe /?)
INIDIR: ini file directory
WIHU: WIHU application directory
CURDIR: current directory
SRCDRIVE: drive of windows installation source
SRCPATH: path of windows installation source

NEWUSERNAME: Name of the newly created account
NEWCOMPUTERNAME: new computername
NEWUSERPASSWORD: new password

Shellfolder variables see example install.ini

Following variables are only valid if /SkipSettings isn't specified:

NewWorkGroupName: new workgroupname
NewOwnerName, NewOrgName


Benjamin Kalytta

#5 User is offline   jimanny 

  • Newbie
  • Group: Members
  • Posts: 30
  • Joined: 01-November 04

Posted 24 January 2005 - 02:23 PM

Benjamin, thanks very much for providing those. Nice job with WIHU BTW! :thumbup

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy