+ Reply to Thread
Results 1 to 2 of 2

Thread: Set temp location or Custom EXE Stub?

  1. #1
    Join Date
    Nov 2008
    Posts
    4

    Default Set temp location or Custom EXE Stub?

    So I have a script the calls ImpersonateLoggedOnUser to do some stuff in a specific account. This part is working fine. The problem is that when the exe starts up (before any of the script is run) it extracts some temporary files to the docs & settings\user name\local settings\temp directory, or something like that. When the script has changed users, that temp file is no longer accessible by the script because its now running with credentials different from when the temp file was created. So I need to be able to change users and still access those temp files. To do this I can think of these options:

    1) Change the location the the temp files are created, but I don't see anyway to do that.

    2) Change the permissions on the temp files, but I don't know the file names(They are all like SB123A.tmp). Also, I don't know if the permissions are changed immediately or later (I seem to recall doing that before and they were set after everything else was done).

    3) Change the EXE stub to a custom one. I don't think SB supports this (I had some installer years ago that did).

    4) Something I didn't think of.

    I'm using SB Developer 6.9 on a Windows XP box.

    Thanks,

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Set temp location or Custom EXE Stub?

    Hello,

    Before I can provide an answer, why do you have to access files in your temporary folder? Are you calling custom DLLs or EXEs?

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •