How to Mention USERPROFILE\Documents in InstallShield? Need an Idea ...
It is a very simple thing but it makes my life miserable, Please guys help me here ... I package an application with installshield 2013 successfully. in that application some files go to the current users document directory e.g. C:\Users\<Name of the AD User>\Documents\xyz.txt ... I tried to place these files in [PersonalFolder] or [LocalAppDataFolder] or [LocalAppDataFolder]\document or [USERPROFILE]\document but no use Test Machine keep getting these file only in my <Packagers) USERPROFILE\document (Even if another user test it), for this issue resolution I use Active setup but still I am keep getting these files in my user profile document folder even if some other user try to log in into the same computer he/she couldn't be able to find these files (and these files are very mandatory in case for program to work successfully) ... Any ideas ?
Please log in to answer
Posted by: jagadeish 5 years ago
If you have Advertised Shortcut in the pacakge
Place the file in [PersonalFolder], add a current user registry key in the same component.
Set the registry key as KeyPath..
If you don't have any Advertised entry point in the package
Follow the same step which is mentioned above
StubPath = msiexec /fup [ProductCode] /qn
Version = 1,0,0,0
f - for repair
u - for user registry
p- for user profile files
Posted by: EdT 5 years ago
If your active setup is running a repair of the MSI then it's going to fail also.
Create your package so that it installs the user folders to a new folder under the app's program files folder so that they are present on the machine. Then use your active set to run a script, also installed in your new folder, that will work out the current user's documents path (eg from the environment variable settings) and copy the files over.
Dealing with installing files in the user profile has many different solutions including self healing if the shortcuts are advertised. They have all been described in endless detail both here and in other places on the internet. A little bit of research will get you many different answers that you can use in the future.