/build/static/layout/Breadcrumb_cap_w.png

Need to repackage an app with a self-healing folder on mapped drive

Hi,

I have an app that needs to be repackaged so that when it is launched it creates a folder on a user's home directory (my documents).

The folder will obviously not exist each first time it is run by a user. The tools I am using are Winisntall LE 2k and Masai repackager.

Can someone advise me on how to do this please?

thanks
Mike

0 Comments   [ + ] Show comments

Answers (6)

Posted by: kkaminsk 19 years ago
9th Degree Black Belt
0
I don't know the specifics of how those applications author MSIs so I can't give much insight however as long as one of the files is a key path it shoud work alright. You should be able to author the MSI to install to My Documents and as long as the MSI is deployed at the correct time it will redirect to the network. The only time it might not is if you install at logon via active directory and the folders have not yet been redirected to the network. There is a way to work around that issue as well but it means more group policies.
Posted by: meastaugh1 19 years ago
Senior Purple Belt
0
This folder doesn't need to have anything in it, it's just for user data files. Does it need to have a file in it, so I can make it a key file?

I'm installing pre-logon, but not via AD. It's a similar mechanism though I think.
Posted by: DuncanPaul 19 years ago
Orange Belt
0
I use script to do this, so have a small vbs script that checks for folders existence, creates the folder, then runs the app. point the icon at the vbs not the exe
Posted by: meastaugh1 19 years ago
Senior Purple Belt
0
Hi DuncanPaul,

Yeah I was leaving that as a last resort. I'm sure it's possible to do it from the MSI, I've seen apps like MS Office and Paintshop Pro create folders in a user's Mydocs by running a self-heal upon launch.

I think it's probably safe to ignore the fact that it would need to write to a network share, as the my docs directly redirects to the network share.

So just need to figure out how to make the MSI write to MyDocs. Is it something to do with making the folder a key path?

Thanks
Posted by: kkaminsk 19 years ago
9th Degree Black Belt
0
You can make a component with a folder in it. I cannot set it as a key path so I don't think it will self heal.
Posted by: mickman 19 years ago
Orange Belt
0
As long as 'My Documents' points to that network drive and there's a related key file in your MSI file, it should repair whenever that user launches the application and the files aren't there.
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