Creating a folder in My Documents for each user
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?
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
Answers (4)
Please log in to answer
Posted by:
HotSpot
17 years ago
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:
To get a list of env variables go to command prompt and type "set"
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"
Posted by:
ginolard
17 years ago
Posted by:
HotSpot
17 years ago
Posted by:
ginolard
17 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.