/build/static/layout/Breadcrumb_cap_w.png

How...? Create folder on network share after install

Hello everyone,
I have searched the forum, but as I'm not sure what Im looking for I haven't come across an answer so if anyone can help or point me in the right direction I would be most appreciative.

I am having problems with a piece of software which I am trying to package.
The software uses an ini file which holds the 'User save path' for user data.
The 'User save path' is Y:\SoftwareTitle\Saves. Y points to a network share on the server. (I have also tried a UNC path).
The problem I am having is when the software runs for the first time, if the folder 'SoftwareTitle\Saves' does not exist on Y:\ the program does not run.

How can I use Installshield / AdminStudio to edit the msi so that when the user first runs the program after install it checks to see if the folders exist, if they dont exist then create them?
I would also like the folders and the data within them to remain on the server if the software is uninstalled.
I have little experience with AdminStudio, generally with the software I have to package I only use the repackager tool.

Many thanks in advance for any help you can give.
Andy (Software packaging novice)

0 Comments   [ + ] Show comments

Answers (9)

Posted by: anonymous_9363 15 years ago
Red Belt
0
The solution may depend on how the MSI is run. If it's executed by a deployment system (e.g. Group Policy, SMS/SCCM, Altirs, Radia) then it will be mostly executed in System context, i.e. by the local System user. This user has no concept of networks, much less any network access so a test for a network drive would fail.
Posted by: bigchunks 15 years ago
Senior Yellow Belt
0
Hi, thanks for the quick response.
Group policy is used to deploy the MSI's. When there are reg settings in HKEY Current User I have seen the MSI installing/configuring these settings when the users first runs the application, is there a way to get a script to run in this manner? i.e When the application is first run?
Sorry if this seems vague, Im describing this the best I can! :)
Posted by: anonymous_9363 15 years ago
Red Belt
0
If it's GP, wouldn't it be simpler to put the users into a group and add code to their login script that tests for the drive/folder's existence, creating same if not present?
Posted by: bigchunks 15 years ago
Senior Yellow Belt
0
Unfortunately not. There are many software titles like this that I have to package, all pointing to their own unique save path. The software is used on many segregated networks....therefore many different logon scripts.
Thanks

In reponse to a post that has been removed - All users have Change permissions on the network share (NTFS permissions are set to Full control)
Posted by: anonymous_9363 15 years ago
Red Belt
0
In that case, build a generic script (probably network-hosted - the Netlogon share seems like a good place! - to which you can pass the folder structure and have it created. Use Active Setup to call it.

And before you ask, there's plenty of advice here on AppDeploy about Active Setup.
Posted by: bigchunks 15 years ago
Senior Yellow Belt
0
Thats excellent. Don't worry, I wasn't going to ask, now I know its Active Setup I need to use, I can do some digging :)
Many thanks for your help.
Posted by: aogilmor 15 years ago
9th Degree Black Belt
0
some of the answer would depend on how gp deploys software. Is it like SMS under a system acct witih the user logged off, and is it possible to do stuff under user context? Also your answer to vb wasn't real clear...if you're using gp to deploy apps, why would it also not be practical to do drive mappings and folder creation...or am I missing something? If your network is too "segregated" to make lgiscripts practical, I'd also foreseee problems with GP.

in any case yes, probably active setup would be a decent way to do this within a package. I was going to say createfolder but that is problematic installing under sms or gp...although you COULD create an Y:\SoftwareTitle\Saves shared drive for the installing user provided gp runs under a network user and not local admin, then when the user uses the softare it should if the folder is not created, create it on the user's drive. either way is a little bit kludgy. IME, usually it's a network app with a network shortcut, which requires some files installed locally. can't say that I've actually encountered a situation where the package had to create a network directory, that's really getting into nonsupported territory. (also, in my test package -what can i say, i'm bored - I had to change ROOTDRIVE to s:\ to make this work).

I've seen crazy ideas about using SUBST. and other non-supported methods, makes my head hurt.
let us know how it goes for you.
Posted by: anonymous_9363 15 years ago
Red Belt
0
Is it like SMS under a system acct witih the user logged off, and is it possible to do stuff under user context? Owen, FYI, yes. GP can deploy on a machine or user basis.
Posted by: bigchunks 15 years ago
Senior Yellow Belt
0
Hi VBScab,
Just wanted to say thanks for your help. I used Active Setup to call a batch file which I included within the MSI. The batch file contains the command:
MD "Y:\SoftwareTitle\Saves"

Its simple, but highly effective and exactly what I was looking for.

Thanks again.
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