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
- :
- InstallScript Function
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 18, 2009
12:04 PM
InstallScript Function
Here is my dilemma hopefully someone can direct me in the right direction. I have an install that I have to upgrade (was built with Wise). I have the uninstall built already. What I need to do prior to the uninstall is the following:
Copy from UserProfile a directory to a temporary location. Install the application and then copy that same folder to the users O:\ Drive (Network Share). I am trying the following function (Now I am a complete Newbie).
function MyFunction(hMSI)
// To Do: Declare local variables.
STRING svPropertyValue, copyDirSource, copyDirTarget;
NUMBER nBufferSize;
begin
nBufferSize = 256;
copyDirSource = "c:\\Documents And Settings\\USERPROFILE\\.dbvis";
MsiGetProperty(ISMSI_HANDLE, "USERPROFILE", svPropertyValue, nBufferSize);
copyDirTarget = svPropertyValue ^ "C:\\Temp\\.dbvis";
end;
I am just testing the local directory copy. I have not even dabbled into the home drive copy. Any help that anyone could provide would be greatly appreciated.
Copy from UserProfile a directory to a temporary location. Install the application and then copy that same folder to the users O:\ Drive (Network Share). I am trying the following function (Now I am a complete Newbie).
function MyFunction(hMSI)
// To Do: Declare local variables.
STRING svPropertyValue, copyDirSource, copyDirTarget;
NUMBER nBufferSize;
begin
nBufferSize = 256;
copyDirSource = "c:\\Documents And Settings\\USERPROFILE\\.dbvis";
MsiGetProperty(ISMSI_HANDLE, "USERPROFILE", svPropertyValue, nBufferSize);
copyDirTarget = svPropertyValue ^ "C:\\Temp\\.dbvis";
end;
I am just testing the local directory copy. I have not even dabbled into the home drive copy. Any help that anyone could provide would be greatly appreciated.
(1) Reply
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 19, 2009
07:11 AM
Any Suggestions for my question?????:(