Hi Paul,
Thanks for all the advice. I decided to move the statements out of the vbs file and into the batch file that called the installer. At least that way, I can control the result of xcopy in case there are errors, and also I found out that I should use rmdir instead of del since rmdir already covers deleting files and folder while for del, only the files are deleted.
User Profile
Collapse
-
Hi Paul,
I'm sorry, I'm just a beginner in vbs and the only reason I chose to use vbs was that its one of the allowable types when adding a program in custom action. I would have preferred using .bat. Regarding the code posted above, actually I just copied it from some existing script and modified it. The problem isn't actually osShell since before the delete statement I used osShell.Run to execute the xcopy function. I had some readonly...Leave a comment:
-
Hi Paul,
Thanks for the response. Unfortunately we are not allowed to use third party applications to build our installer. However, I was able to come up with a workaround.
The first time installer, I set permanent to true for all files.
For the upgrade installer, I modified the directory of the files to be updated. Instead of putting it in the application directory, I put it in a temporary folder....Leave a comment:
-
How to create initial installer and upgrade installer?
Hi,
I'm currently developing an application for a POS Terminal using VB.net. Our project is approaching the last stage of development and I've been tasked to create 2 installers. 1 for Initial Installation, and the other for upgrade installation.
The project is composed of several elements. These are:
1. The application executable
2. Common DLLs that we developed
3. some resources (.resx and XML)...
No activity results to display
Show More
Leave a comment: