Archive: $profile


$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 !


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.


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