Discussion Locked

SMS Installer - User Name Variable

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
When using SMS Installer, if a file needs to be installed to the c:\windows\profiles\[user] directory or Current User key in the registry, how do you make the username a variable? If I proceed with the .exe using the username, it will create a new folder with the specific username and not install to the current user folder.

1 reply

by jim_galpin

One of the ways we have gotten around the current user registry entries is to create a *.reg file with the required entries. Use SMS to place a batch file in the All users start up that will run the *.reg file. The last line of the batch file should delete the batch file. This works as long as the intended recipient is the first one to log into the machine after the SMS script.

This discussion is closed to new replies.