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()
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...
FOLLOW US
Get the latest news in Application Packaging