/build/static/layout/Breadcrumb_cap_w.png

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?

0 Comments   [ + ] Show comments

Answers (4)

Posted by: HotSpot 16 years ago
Orange Senior Belt
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"
Posted by: ginolard 16 years ago
Senior Yellow Belt
0
The problem with that is that all packages run under a specific admin account, not the user account.
Posted by: HotSpot 16 years ago
Orange Senior Belt
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...
Posted by: ginolard 16 years ago
Senior Yellow Belt
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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