/build/static/layout/Breadcrumb_cap_w.png

installing files to HOMEDRIVE

Hello,

I have a file to be delivered in HOMEDRIVE. In this case the HOMEDRIVE was set to M:.

How can I set the property to HOMEDRIVE and then deliver the files through custom action using New Set Property.

The folder structure must be M:\.jinit\<file>

Regards,
Leween

0 Comments   [ + ] Show comments

Answers (4)

Posted by: AngelD 15 years ago
Red Belt
0
Which line is 47?
Which folder is it trying to remove when the error is hit?
Where are you sequencing the execution of the custom action?
Posted by: anonymous_9363 15 years ago
Red Belt
0
Teensy clue-ette here:

script error -2146828218. Microsoft VBScipt runtime error. Permission denied Line 47, Column 3.

Clearly, the account under which the action is executing has insufficient privileges to delete the folder in question.
Posted by: anonymous_9363 15 years ago
Red Belt
0
Uh huh...so the user account STILL doesn't have sufficient privileges.

If the error is occuring where you say, that account cannot enumerate sub-folders of 'objMainFolder'.

For the time being, get the script working stand-alone. Once it works in that state, THEN stick it into your package and re-test.

BTW, hard-coded paths will bite you sooner or later. Use the FileSystemObject object's ability to resolve the paths to SpecialFolders (e.g. the user profile folder) or the Shell object's environment-fetching methods if you prefer.
Posted by: anonymous_9363 15 years ago
Red Belt
0
Could you please remove this post and re-post as a new topic in the 'Package Development' forum? It makes no sense added as a post to this thread, as the subject matter is completely unrelated both to the original post and not least to this forum's target subject, i.e. Scripting.
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