/build/static/layout/Breadcrumb_cap_w.png

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 ?

1 Comment   [ + ] Show comment
  • Have you set HKCU registry key as a KeyPath of the corresponding component (I mean the component with those files from PersonalFolder)?
    ICE38 Error - https://msdn.microsoft.com/en-us/library/aa368961%28v=vs.85%29.aspx - rad33k 9 years ago

Answers (2)

Answer Summary:
Posted by: jagadeish 9 years ago
Red Belt
1
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
Add ActiveSetup 
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 9 years ago
Red Belt
0

Top Answer

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.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ