Search found 101 matches

Go to advanced search

by hsc
Tue Feb 11, 2025 1:30 pm
Forum: Common Problems
Topic: Cloning functionality
Replies: 3
Views: 9441
 
Jump to post

Re: Cloning functionality

Hello Catalin, thank you, but that doesn't solve the problem. Those installer projects are too much different to be created from a common template. Is there no way to share the code and UI across projects? I mean, something like you can share C++ code by means of a lib file, or in binary form as a ...
by hsc
Wed Feb 05, 2025 3:59 pm
Forum: Common Problems
Topic: Cloning functionality
Replies: 3
Views: 9441
 
Jump to post

Cloning functionality

I created some rather complex functionality in an installer which includes GUI logic as well as embedded and external PowerShell scripts. I want to copy this functionality to other installers. If it were only one, I'd copy/paste the stuff, but in the end there will be 5 or more installers which need ...
by hsc
Wed Jan 22, 2025 9:50 am
Forum: Common Problems
Topic: Localization of script messages
Replies: 2
Views: 3783
 
Jump to post

Re: Localization of script messages

I found a solution. If you know a more elegant one, please comment.
I followed https://www.advancedinstaller.com/user-guide/qa-property-value-localize.html to create a property (e.g. MESSAGE_FILENOTFOUND) which holds the message text ("File not found"), and to add translations for this string in ...
by hsc
Tue Jan 21, 2025 1:53 pm
Forum: Common Problems
Topic: Localization of script messages
Replies: 2
Views: 3783
 
Jump to post

Localization of script messages

Hi,

localizing messages in AI is relatively easy. But what if the message originates in a user action? I created a few PowerShell scripts which may return error or other messages, and I'd love to use AI's localization mechanism so that I have all translated strings in the same dictionary file. How ...
by hsc
Thu Jan 16, 2025 3:57 pm
Forum: Common Problems
Topic: Conditionally creating a shortcut
Replies: 3
Views: 3957
 
Jump to post

Re: Conditionally creating a shortcut

Thanks Liviu! Works like a charm... once I know it!
by hsc
Thu Jan 16, 2025 12:43 pm
Forum: Common Problems
Topic: Conditionally creating a shortcut
Replies: 3
Views: 3957
 
Jump to post

Conditionally creating a shortcut

Hi,

there are lots of articles about how to create a desktop shortcut to the installed application, and this works fine. However, how do I make the creation of the shortcut depend on the user's decision?

I added a checkbox with label "Create desktop icon" to the VerifyReadyDlg and linked it to the ...
by hsc
Wed Jan 08, 2025 4:38 pm
Forum: Common Problems
Topic: Command line question: UpdatePrerequisite
Replies: 9
Views: 9543
 
Jump to post

Re: Command line question: UpdatePrerequisite

I found a solution. I am posting this here for reference. Or maybe someone finds a more elegant way...

Since the prerequisite has two conditions (I don't know why, but this is how AI created it), I issue two UpdatePrerequisite commands, one for each condition. (See screenshot in my previous comment ...
by hsc
Tue Jan 07, 2025 9:52 am
Forum: Common Problems
Topic: Command line question: UpdatePrerequisite
Replies: 9
Views: 9543
 
Jump to post

Re: Command line question: UpdatePrerequisite

Hello Catalin, happy new year, and thank you for your reply! Your suggested command line works, but now I am a little confused. As you can see from this screenshot, it added a third install condition. The top two conditions, with value 14.38.33135, were present before I applied the command.
2025-01 ...
by hsc
Tue Dec 17, 2024 4:51 pm
Forum: Common Problems
Topic: Command line question: UpdatePrerequisite
Replies: 9
Views: 9543
 
Jump to post

Re: Command line question: UpdatePrerequisite

Using AI version 22.2. I can update to 22.3 if you think it fixes the problem.
by hsc
Tue Dec 17, 2024 3:56 pm
Forum: Common Problems
Topic: Command line question: UpdatePrerequisite
Replies: 9
Views: 9543
 
Jump to post

Re: Command line question: UpdatePrerequisite

Hello Catalin,

thank you for your reply. I re-checked and found the version number unchanged. I am attaching two screenshots so that you can verify I was looking in the right place. My intention was to change the minimum required version from 14.38.33135 to 14.42.34433.

2024-12-17_15h46_44.png ...
by hsc
Fri Dec 13, 2024 9:51 am
Forum: Common Problems
Topic: Command line question: UpdatePrerequisite
Replies: 9
Views: 9543
 
Jump to post

Re: Command line question: UpdatePrerequisite

Update: The problem with the command line was the missing "-prereq_path" option. This is a mandatory option, well hidden among lots of optional options. Now, the command line is:
"C:\Program Files (x86)\Caphyon\Advanced Installer 22.2\bin\x86\advinst.exe" /edit C:\Src\hsc\BCS\BCS_Setup.aip ...
by hsc
Thu Dec 12, 2024 12:31 pm
Forum: Common Problems
Topic: Command line question: UpdatePrerequisite
Replies: 9
Views: 9543
 
Jump to post

Command line question: UpdatePrerequisite

Hi, what is wrong with this command line?

"C:\Program Files (x86)\Caphyon\Advanced Installer 22.2\bin\x86\advinst.exe" /edit C:\Src\hsc\BCS\BCS_Setup.aip /UpdatePrerequisite "Visual C++ Redistributable for Visual Studio 2015-2022 x86" -minversion 14.42.34433

When I launch it, a window pops up ...
by hsc
Mon Dec 09, 2024 1:10 pm
Forum: Common Problems
Topic: File copy and rename question
Replies: 3
Views: 2103
 
Jump to post

Re: File copy and rename question

Hello Liviu, your email server rejected the email. The ZIP attachment contained none of the file types which Google lists as potentially harmful. Any alternatives?

mx.google.com gave this error:
This message was blocked because its content presents a potential security issue.

Regards
Hans
by hsc
Fri Dec 06, 2024 9:42 am
Forum: Common Problems
Topic: File copy and rename question
Replies: 3
Views: 2103
 
Jump to post

File copy and rename question

My installer must copy and rename a file if a condition is met.

The file to copy is included in the installer project as a temporary file with the name "template.par". It should be copied and renamed to a directory and a file name that depend on user input. The destination directory and name are ...
by hsc
Tue Dec 03, 2024 9:24 am
Forum: Common Problems
Topic: Display an icon
Replies: 3
Views: 2475
 
Jump to post

Re: Display an icon

Thank you Catalin!

In the meantime I found out that the ico files which AI created when I imported the svg files are completely blank - so no wonder nothing is displayed.

I then exported a png file from my graphics program. After importing this file into Themes -> Images, the graphics was ...

Go to advanced search