Search found 26 matches

Go to advanced search

by SZLMCL
Tue Mar 21, 2023 4:29 pm
Forum: Building Installers
Topic: PowerShell build problems
Replies: 7
Views: 14347
 
Jump to post

Re: PowerShell build problems

Hello, Usually, AI COM uses the latest version installed on the system. To register the latest AI version you want to use for COM, please follow these steps: Open an elevated Command Prompt . Use the following command: "C:\Program Files (x86)\Caphyon\Advanced Installer 20.4.1\bin\x86\advinst.e...
by SZLMCL
Tue Mar 21, 2023 3:31 pm
Forum: Building Installers
Topic: PowerShell build problems
Replies: 7
Views: 14347
 
Jump to post

Re: PowerShell build problems

Hello, After I update AI to the latest version, the COM object call throws an exception: $advinst = new-object -ComObject AdvancedInstaller 0x80040154 (R EGDB_E_CLASSNOTREG) Before install new version it worked fine. How can I register the AI COM object manually to make this work again? Thank you!
by SZLMCL
Thu Jan 26, 2023 6:27 pm
Forum: Building Installers
Topic: Automatize installer creation with PowerShell
Replies: 7
Views: 35282
 
Jump to post

Re: Automatize installer creation with PowerShell

Finally I succeed with this. I post my code, probably help for anyone. The only thing that I cannot find in object model is the updates.txt file location. Can you help me please how can I get this? Thank you! # Delete all update definitions foreach ($iupdate in $project.Updates) { $delres = $project...
by SZLMCL
Thu Jan 26, 2023 5:24 pm
Forum: Building Installers
Topic: Automatize installer creation with PowerShell
Replies: 7
Views: 35282
 
Jump to post

Re: Automatize installer creation with PowerShell

Sorry I have a mistake with PS syntax, now works.
by SZLMCL
Thu Jan 26, 2023 5:21 pm
Forum: Building Installers
Topic: Automatize installer creation with PowerShell
Replies: 7
Views: 35282
 
Jump to post

Re: Automatize installer creation with PowerShell

Thank you! I try write the code, but my first command will not work. :-) 1. Delete all existing updates: foreach ($iupdate in $project.Updates) { $project.RemoveUpdate $iupdate } Throws error: + $project.RemoveUpdate $iupdate + ~~~~~~~~ Unexpected token '$iupdate' in expression or statement. + Categ...
by SZLMCL
Thu Jan 26, 2023 1:53 pm
Forum: Building Installers
Topic: Automatize installer creation with PowerShell
Replies: 7
Views: 35282
 
Jump to post

Re: Automatize installer creation with PowerShell

This is amazing, than you very much. It works!

That is also possible to automate the build of "Updater" project?

Image

Thank you!
by SZLMCL
Thu Jan 26, 2023 12:46 pm
Forum: Building Installers
Topic: Automatize installer creation with PowerShell
Replies: 7
Views: 35282
 
Jump to post

Automatize installer creation with PowerShell

Hello,

I have an existing AI installer.

I would like:
1. Increase the version with 1 (generate new guid).
2. ReBuild the installer.
3. Save the project file.
with PowerShell.

This is possible? or there are another ways to automatize this tasks?

Thank you!
by SZLMCL
Wed Oct 19, 2022 7:53 am
Forum: Common Problems
Topic: How to set Automatic (delayed) service start
Replies: 1
Views: 1602
 
Jump to post

How to set Automatic (delayed) service start

Hello, I have Advanced Installer 18.7 installed. I have a Service installer and I would like set the Parameters -> Start type option to 'Automatic (Delayed)', but I not see this option. In Windows Services this option is available. Unfortunatelly my Service starts only with 'Automatic (Delayed' opti...
by SZLMCL
Thu Oct 06, 2022 8:39 am
Forum: Building Installers
Topic: Edit .json file on install
Replies: 7
Views: 18255
 
Jump to post

Re: Edit .json file on install

Dear Liviu,

Thank you for help, I try import the json, but the following error message throws:
aaaaa.jpg
aaaaa.jpg (13.83 KiB) Viewed 11593 times
My json is a simple json with a connection string and azure logic app url and some settings.

What is the accepted charachter encoding for Advanced Installer?

Thank you for help!
by SZLMCL
Tue Oct 04, 2022 11:08 am
Forum: Building Installers
Topic: Edit .json file on install
Replies: 7
Views: 18255
 
Jump to post

Re: Edit .json file on install

Hello, I have version 18.7 installed and I not find the Edit Json File Dialog. When I double click on appsettings.json file the "Edit file" dialog opens, not the "Edit JSON file" dialog. Can you help me please how can I change my appsettings.json content? Thank you! appsettings.p...
by SZLMCL
Fri Mar 12, 2021 4:00 pm
Forum: Common Problems
Topic: Execute SQL Script after IIS AppPool installation
Replies: 3
Views: 2897
 
Jump to post

Re: Execute SQL Script after IIS AppPool installation

Thank you, finally I succeed with .NET library version (the other methods not working).

For me this will be fine, but what is the easiest way (settings) if I would like execute an SQL script at the end of the installation and the connection string is coming from AI variable?

Thank you!
by SZLMCL
Tue Mar 09, 2021 3:51 pm
Forum: Common Problems
Topic: Execute SQL Script after IIS AppPool installation
Replies: 3
Views: 2897
 
Jump to post

Execute SQL Script after IIS AppPool installation

Hello, I would like execute an SQL Script after the IIS AppPool installation. So my tasks: - Install IIS Web Deploy project with new App Pool. -> SUCCESS - Install SQL Script. -> FAILS, RUNS BEFORE IIS APP POOL CREATED (NEEDS TO BE EXECUTED AFTER IIS TASKS) sql1.PNG sql1b.PNG sql2.PNG I try lot of a...
by SZLMCL
Fri Jan 29, 2021 3:45 pm
Forum: Common Problems
Topic: NET Framework installer wait for another installation
Replies: 6
Views: 4413
 
Jump to post

Re: NET Framework installer wait for another installation

Hello,

Understand, thank you for help! I hope in another computer will be fine... I will test it.

BR, László
by SZLMCL
Fri Jan 29, 2021 9:28 am
Forum: Common Problems
Topic: NET Framework installer wait for another installation
Replies: 6
Views: 4413
 
Jump to post

Re: NET Framework installer wait for another installation

Hello,

Now I check it again and very weird thing happen, after 10 minutes wait the .NET Installer continues and installed successfully...
I dont understand the reasons but this not too user-friendly. :)

Thank you!
by SZLMCL
Fri Jan 29, 2021 9:06 am
Forum: Common Problems
Topic: NET Framework installer wait for another installation
Replies: 6
Views: 4413
 
Jump to post

Re: NET Framework installer wait for another installation

Hello,

No, I add the NET Fr. as a Pre-Install prerequisite:
NET.PNG
NET.PNG (47.34 KiB) Viewed 4391 times

Go to advanced search