I have an application that I have created msi with adminstudio where I need to copy a file to, 

Win7: %USERPROFILE%\AppData\Roaming\Oracle\SmartView\

XP: %USERPROFILE%\Application Data\Oracle\SmartView\

I copied that file to C:\program data and created an active setup to copy that file from program data to %USERPROFILE%\AppData\Roaming\Oracle\SmartView\. This works for win 7. But I want the same to do in Xp too.
I need to create a command to copy file for win 7 and xp. please let me know how I can do that.
0 Comments   [ - ] Hide Comments


Please log in to comment

Answer this question or Comment on this question for clarity




Check out the "System Folders Set by the Installer" in the above link.

In short..
You need [AppDataFolder] which is the users "AppData" (Win7) or "Application Data" (Wixp) folder. The installer works out where to put it since its a system property.

You need to do this in the folder view in Installshield, the [AppDataFolder] gets converted automacticly.

See below for example.

Answered 04/25/2013 by: rileyz
Red Belt

Please log in to comment

You can copy it to you installdir as well

Answered 04/26/2013 by: piyushnasa
Red Belt

Please log in to comment

>created an active setup to copy that file
Another kludge from The Man Who Will Not Learn.

Do the job properly! You're obviously dealing with an Oracle product which has to have at least *one* advertised entry-point. Therefore, you should be building a user feature which contains the file destined for the user profile and then making the feature which contains the advertised entry-point a child of yoiur new feature. That way, you get self-healing/repair for the file, rather than the one-off execution you get using Active Setup.

Answered 04/26/2013 by: VBScab
Red Belt

Please log in to comment