We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Search found 18 matches

Go to advanced search

by coroberti
Tue Feb 04, 2020 6:01 pm
Forum: Common Problems
Topic: Conditional Fail of Installation when Custom Action Fails
Replies: 3
Views: 2916
 
Jump to post

Re: Conditional Fail of Installation when Custom Action Fails

Dear Catalin,
Thank you.

Kind regards,
Robert
by coroberti
Tue Feb 04, 2020 5:59 pm
Forum: Common Problems
Topic: PowerShell Inline Custom Action - Currect Installation Task
Replies: 3
Views: 3039
 
Jump to post

Re: PowerShell Inline Custom Action - Currect Installation Task

Dear Catalin,
These are definitely helpful guidelines.

Thank you!

Kind regards,
Robert
by coroberti
Sun Feb 02, 2020 3:49 pm
Forum: Common Problems
Topic: Conditional Fail of Installation when Custom Action Fails
Replies: 3
Views: 2916
 
Jump to post

Conditional Fail of Installation when Custom Action Fails

Hi,
There's an option (checkbox) in Custom Action to select / unselect if installation
should fail or not on failure of a Custom Action.

Instead of hard-selected, could this decision be made a subject of a command line parameter
passed to msiexec, i.e. custom property?

Any direction of how that ...
by coroberti
Fri Jan 31, 2020 10:40 am
Forum: Common Problems
Topic: PowerShell Inline Custom Action - Currect Installation Task
Replies: 3
Views: 3039
 
Jump to post

PowerShell Inline Custom Action - Currect Installation Task

Hi,
Is there a way to figure out in PowerShell Inline Custom Action
what is doing the installer - installing, uninstalling, updating, etc.?

Alternatively, is there a way to get the msiexec command line and its switches passed
like /i or /x, etc.?

Thanks in advance.

Kind regards,
Robert
by coroberti
Wed Jan 29, 2020 12:11 pm
Forum: Common Problems
Topic: Custom Action - Input and Log Output
Replies: 14
Views: 17447
 
Jump to post

Re: Custom Action - Input and Log Output

Dear Catalin,
It woks now as inline script.

To prevent output of the inline script to log,
I'm planning to move it to a non-inline, file-based Powershell Script,
and sign the file for a PowerShell Action.

Thank you very much for your guidelines and examples.

Kind regards,
Robert
by coroberti
Tue Jan 28, 2020 4:37 pm
Forum: Common Problems
Topic: Custom Action - Input and Log Output
Replies: 14
Views: 17447
 
Jump to post

Re: Custom Action - Input and Log Output

Dear Catalin,
Thank you very much!

Kind regards,
Robert
by coroberti
Tue Jan 28, 2020 4:19 pm
Forum: Common Problems
Topic: Custom Action - Input and Log Output
Replies: 14
Views: 17447
 
Jump to post

Re: Custom Action - Input and Log Output

Wow, excellent explanation.

Re: Deferred case.

Since in my case I need to pass APPDATA property and from 2 up to 4 MSI properties,
could it be the case extended to:

Param($firstProperty,$secondProperty,$thirdProperty,$forthProperty ...) ?

or there is a room only for two params?

Thanks,
Robert
by coroberti
Tue Jan 28, 2020 3:47 pm
Forum: Common Problems
Topic: Custom Action - Input and Log Output
Replies: 14
Views: 17447
 
Jump to post

Re: Custom Action - Input and Log Output

After some investigation, my custom action could be only deferred.

It needs to get APPDATA property and from 2 up to 4 custom properties from msiexec command line.

This link explains how to pass two specific MSI properties to a deferred custom action:
https://www.advancedinstaller.com/user-guide ...
by coroberti
Tue Jan 28, 2020 11:39 am
Forum: Common Problems
Topic: Custom Action - Input and Log Output
Replies: 14
Views: 17447
 
Jump to post

Re: Custom Action - Input and Log Output

Well, and I need to pass the custom action Application Folder [APPDATA]
to the script as well.

Thanks!
Kind regards,
Robert
by coroberti
Tue Jan 28, 2020 11:37 am
Forum: Common Problems
Topic: Custom Action - Input and Log Output
Replies: 14
Views: 17447
 
Jump to post

Re: Custom Action - Input and Log Output

Dear Catalin,
Thank you very much for your guidelines.

You are indeed convincing to use the script for that.

The lost element of the puzzle is how to get MSI-passed custom properties in the script.

Let's say, msiexec.exe gets a custom property via its command line: MYPROPERTY="MyPropertyValue ...
by coroberti
Tue Jan 28, 2020 6:41 am
Forum: Common Problems
Topic: Custom Action - Input and Log Output
Replies: 14
Views: 17447
 
Jump to post

Re: Custom Action - Input and Log Output

To continue my previous question regarding OUTPUT or errors
from custom action, there's an article devoted to the topic:

https://www.advancedinstaller.com/user-guide/qa-log-custom-action.html

The questions related to the article are:

- Is this function supposed to be attached to "Launch attached ...
by coroberti
Mon Jan 27, 2020 4:52 pm
Forum: Common Problems
Topic: Custom Action - Input and Log Output
Replies: 14
Views: 17447
 
Jump to post

Re: Custom Action - Input and Log Output

Dear Catalin,
Thank you for the detailed reply that fully covers the INPUT section.
So, INPUT question is closed.

Regarding the OUTPUT from Custom Action,
the question was how to pass messages to the msiexec.exe logfile,
and NOT to a separate file. Thus, IT people have a single logfile to monitor ...
by coroberti
Mon Jan 27, 2020 2:28 pm
Forum: Common Problems
Topic: Custom Action - Input and Log Output
Replies: 14
Views: 17447
 
Jump to post

Custom Action - Input and Log Output

Hi,
After reading docs, I would prefer to get the gurus advise.

1. Custom Action Input - it should get it from the command line as custom Properties obtained from command-line of msiexec.exe.

1.1 Custom Property passed to msiexec.exe command line.
msiexec.exe ... MYPROPERTY="MYVALUE"

Q.1.1 Should ...
by coroberti
Mon Jan 27, 2020 2:05 pm
Forum: Common Problems
Topic: Hiding Cmd Prompt of a Custom Action - Launch File
Replies: 3
Views: 3068
 
Jump to post

Re: Hiding Cmd Prompt of a Custom Action - Launch File

Dear Catalin,

It works if selected "Launch File".

It makes sense to correct the article to save people's time.

Thank you so much!

Robert
by coroberti
Mon Jan 27, 2020 9:18 am
Forum: Common Problems
Topic: Hiding Cmd Prompt of a Custom Action - Launch File
Replies: 3
Views: 3068
 
Jump to post

Hiding Cmd Prompt of a Custom Action - Launch File

Hi,
I've seen the link below:
https://www.advancedinstaller.com/user- ... indow.html

but pardon me since I cannot find the checkbox to hide the run / make it in background.
Attached the screenshot of what I see as the options.

Thanks in advance!
Robert

Go to advanced search