I have a question regarding installing an application. The application project is written in Visual Basic 6 and also uses Inno Set up Compiler for the installer. Everything works fine, but i still have a question.

When the application is installed, it also sets up a temp directory to save files temporarily. So based on the user that is logged in (admin or local user), the temp path is set up. So if i were logged in as an admin and installed the application, the temp directory would map to %admin%\appdata\local\temp, and if i were logged in as a regular user and installed the app, the temp directory would map to %userprofile%\appdata\local\temp.

Now my question is this. I have installed this application on the server using an admin account. As i have installed the application on the server with the admin account, the temp directory is set to the %admin% path. Now i have multiple users remotely logging in to this system to use this application. So when each user saves a file to the temp directory using the application, it goes to the %admin% path. So this mixes up all the files from different users (users that have logged in remotely). How can i make changes during installation so that, with each user logged in, the temp directory maps to the %userprofile% path for the appropriate user?

I would be grateful for any help or advice.

Thanks!