This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Shortcut Working Directory AppDataFolder
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 18, 2011
04:12 AM
Shortcut Working Directory AppDataFolder
I have configured my installation to set the Working Directory of a shortcut to [AppDataFolder]. The installation installs for ALLUSERS. Unfortunately, this sets the working directory of the shortcut to be the AppData folder of the user that installed the app NOT the user that is running the app. Am I doing something stupid? I want my app to have a working directory of the AppData folder of the user that is running the program. How do I do that?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 19, 2011
02:00 PM
Not sure how much this info is helpful but looking at this link it seems you might be able to use 'LocalAppDataFolder'.
However AppDataFolder should also give current user's app data folder path which maps to environment path variable %appdata% i.e. when I ran %appdata% in Start > Run on my PC, it showed me current user's Roaming folder on Win 7 e.g.C:\Users\SK\AppData\Roaming.
However AppDataFolder should also give current user's app data folder path which maps to environment path variable %appdata% i.e. when I ran %appdata% in Start > Run on my PC, it showed me current user's Roaming folder on Win 7 e.g.C:\Users\SK\AppData\Roaming.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 20, 2011
09:16 AM
Thanks for the response. Unfortunately, LocalAppDataFolder suffers the same problem, the difference being that it maps to AppData\Local rather than AppData\Roaming. It looks like InstallShield evaluates the path at install time rather than configuring the path as %appdata%. I tried using %appdata% directly but throws an error during the install.
I still have no solution to this problem.
This seems like such an obvious thing to do that I assumed I was doing something stupid...
I still have no solution to this problem.
This seems like such an obvious thing to do that I assumed I was doing something stupid...