Old 24th November 2009, 15:12   #1
Dommels
Junior Member
 
Join Date: Nov 2009
Posts: 2
Unhappy $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 !
Dommels is offline   Reply With Quote
Old 24th November 2009, 15:37   #2
Zinthose
Senior Member
 
Join Date: May 2009
Posts: 152
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.
Zinthose is offline   Reply With Quote
Old 25th November 2009, 11:46   #3
Dommels
Junior Member
 
Join Date: Nov 2009
Posts: 2
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
Dommels is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump