I am, unfortunately, trying to package WinDVD7 for a corporate rollout.

There is one small problem. When WinDVD7 closes it tries to create a folder in My Documents called Intervideo\WinDVD\PlayList. However, if My Documents is redirected to a network folder (as it is here) the application throws an Abnormal Termination error.

It uses Installshield 6, so how can I create this folder for each user as part of the installation?
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
If it throws a hissyfit because the folder is not there then i would have a VBScript to get the environment variables (eg. USERPROFILE) to then create the folder prior to copying the files to that location, the env variable will give the following format:

C:\Documents and Settings\User

then plonk the rest on the end:

C:\Documents and Settings\User\My Documents\Intervideo\WinDVD\PlayList

if its a network location then the variable will reflect that.

Script looks (something!) like this:

Set ObjShell = CreateObject( "WScript.Shell" )
varProfile= ObjShell.ExpandEnvironmentStrings("%USERPROFILE%")

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.CreateFolder(varProfile & "\My Documents\Intervideo\WinDVD\PlayList")


To get a list of env variables go to command prompt and type "set"
Answered 06/12/2007 by: HotSpot
Orange Senior Belt

Please log in to comment
0
The problem with that is that all packages run under a specific admin account, not the user account.
Answered 06/12/2007 by: ginolard
Senior Yellow Belt

Please log in to comment
0
small problem. When WinDVD7 closes it tries to create a folder

Ahh, ok, why not try using ActiveSetup to run this script when the user logs in, this will run with all users that log in...
Answered 06/12/2007 by: HotSpot
Orange Senior Belt

Please log in to comment
0
Sigh. Active setup. I knew that was going to be the answer.

It amazes me that, in this day and age of corporate software agreements, companies do not automatically let their software be installed and uninstalled completely silently for ALL users.
Answered 06/12/2007 by: ginolard
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity