/build/static/layout/Breadcrumb_cap_w.png

Rename an existing file

I have a problem and i don´t know how i can solve it, i have to rename an existing file in a directory that a user enter by command line. I don ´t know how i can rename this existing file. Can you help me?

Thanks by advance.

0 Comments   [ + ] Show comments

Answers (2)

Posted by: carastlin 18 years ago
Senior Yellow Belt
0
Well i finally solve the problem, but know i have another problem when i try to uninstall the application.
I solve the problem with a vbscript stored in the costum action where the user create the directory.
Now when i try to uninstall the application, the installer shows me a message:

Error 1720. There is a problem with Windows Installer packege. A script required for this install to complete could not be run. Contact....

When i rename the file, when installer try to uninstall, it doesn´t find the file with the new new. How can i solve this problem??

Thanks in advance.
Posted by: gammann 18 years ago
Yellow Belt
0
You can nest your custom action in an IF statement

IF NOT Installed
Custom Action
END

This will make sure to only run this custom action when the package is being installed.
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