Dommels
24th November 2009 16:12 UTC
$profile
Hello,
I'm trying to write some files in the windir %userprofile%.
So I use the $PROFILE variable and my little program seems to work when I install it locally. Every file is indeed in the %userprofile% directory.
BUT ... when I push the program via CA DSM (over the network) then I find the files I want to copy in the c:\windows\system32\systemprofile directory instead of the %userprofile% directory.
Did anyone had the same problem and if so, how to resolve it ?
Thanks !
Zinthose
24th November 2009 16:37 UTC
You need to have it execute in the users context or by checking the logged on sessions to determine were to place the files. There are a number of ways to do this. We use Altiris for out deployments so it's a simple check box to run a program as the user.
Dommels
25th November 2009 12:46 UTC
I have a checkbox, but only when I create MSI installers. When it's an EXE file, no checkbox is available...
Other suggestions ? I can write a vb script that does the same and then deploy it via GPO but that's not really what I want.
Thanks