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)
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)
Please log in to answer
Posted by:
anonymous_9363
15 years ago
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
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! :)
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
Posted by:
bigchunks
15 years ago
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)
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
Posted by:
bigchunks
15 years ago
Posted by:
aogilmor
15 years ago
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.
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
Posted by:
bigchunks
15 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.