Command Line Force Folder Overwrite - Advanced Installer Community
89jase
Posts: 6
Joined: Wed May 28, 2014 7:19 am

Command Line Force Folder Overwrite

Hi all

I've been working on some automation for AI (sadly company will only use free version).
We build multiple patches into new unversioned MSIs every week and just version in the title (again, something i'm unhappy about)

Anyway, I always need to force overwrite files and folders. My Paramiter file looks like this

Code: Select all

                try:
                        file.write(";aic\n")
                        file.write("""AddFolder APPDIR\ C:\AutoMSI\maketemp\SPATIALnet\python""")
                        file.write("\n")
                        file.write("""AddFolder APPDIR\ C:\AutoMSI\maketemp\SPN\param""")
                        file.write("\n")
                        file.write("""AddFolder APPDIR\ C:\AutoMSI\maketemp\SPN\symbol""")
                        file.write("\n")
                        file.write("""AddFolder APPDIR\ C:\AutoMSI\maketemp\SPN\fme""")
                        file.write("\n")
                        file.write("SetPackageName " +'"' + parms + ".msi"+'"'+" -buildname DefaultBuild\n")
                        file.write("SetProductCode -guid {} -langid 1033\n")
                        file.write("SetProperty ProductName="+'"' + parms +'"'+ "\n")
                        file.write("Rebuild")
                        file.close()
I basically need to set a property for each folder so it will always overwrite. Had a look on Forum and Tutorials, cannot find anything yet.

Help would be appreciated. I'm hoping if I prove that I can automate this process the company will fork out some cash for a Pro License...
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Command Line Force Folder Overwrite

Hello,

Starting with the Professional edition, the Advanced Installer command line allows you to create, build or edit projects without using the graphical interface.
Please take a look on the Working with Advanced Installer from the Command Line article with related information for hints and guidance.

Also, starting with the Professional edition, you can use the Synchronized Folders functionality which allows you to create a synchronization link between a folder located on you hard-drive and one created in your project. This means that every time a project is open, built or you press the [ Refresh ] button in the Files and Folders page, the content of that folder is synchronized to the content of the source folder on disk.

You can test Advanced Installer in trial mode. During the trial you have access to all the features, without any limits. The setup packages will just include message boxes during the installation, saying they were built with a trial version of Advanced Installer.

Other then that, you can change dialog backgrounds, branding, anything you want. Just make sure you create the project type you need, as the features are limited based on the project type.

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”