Search found 17 matches

Go to advanced search

by claudenoel
Fri Jun 14, 2019 9:09 pm
Forum: Common Problems
Topic: Loading project - Validating components... forever!
Replies: 6
Views: 5777
 
Jump to post

Loading project - Validating components... forever!

I created a new project using the repackaging option. I got a huge 92 megs aip file. Everythig went fine. I started to epurate some registry entries, saving my aip file from time to time. Finally, I closed the project. Now, I want to go back to my project to continue my work but it keeps loading at ...
by claudenoel
Tue Dec 11, 2018 9:38 pm
Forum: Building Installers
Topic: Monitor SQL scripts within a dialog form
Replies: 3
Views: 3859
 
Jump to post

Re: Monitor SQL scripts within a dialog form

Well, it doesn't work the way you suggest. I also tried using the listbox example but I found that a Refresh dialog should be activated, which I don't have (using AI 10.6).
Any other suggestion? I just want to user to be notified in any way which script is executing.
by claudenoel
Fri Dec 07, 2018 10:18 pm
Forum: Building Installers
Topic: Monitor SQL scripts within a dialog form
Replies: 3
Views: 3859
 
Jump to post

Monitor SQL scripts within a dialog form

I have to run un bunch of SQL scripts. I created a custom action for each of them that are called when the user presses a button in a dialog form. Each script returns a completion string. I want to display those string in the dialog form so the user is aware of the progress. So at the end of each ...
by claudenoel
Fri Nov 30, 2018 7:54 pm
Forum: Common Problems
Topic: Get SQL message output
Replies: 1
Views: 2689
 
Jump to post

Get SQL message output

Is there a way we can retreive or display the SQL messages (like those generated by the print statement)?
by claudenoel
Wed Nov 21, 2018 6:38 pm
Forum: Building Installers
Topic: Execute custom action at the end, no matter how it ends
Replies: 1
Views: 8104
 
Jump to post

Execute custom action at the end, no matter how it ends

I need to execute a custom action no matter how the installation completes (success, failure, cancel). Where should I put the action?

I tried at the end of the Install Execution Stage , after InstallFinalize and also in the Finish Dialogs Stage but it is not executed when the user cancels the ...
by claudenoel
Tue Nov 20, 2018 12:59 am
Forum: Common Problems
Topic: Start a service only if it was running before the installation
Replies: 13
Views: 12077
 
Jump to post

Re: Start a service only if it was running before the installation

Thanks for the debug procedure. It helped me a lot and I found what was wrong. Everything's perfect now!
by claudenoel
Thu Nov 15, 2018 2:38 am
Forum: Common Problems
Topic: Start a service only if it was running before the installation
Replies: 13
Views: 12077
 
Jump to post

Re: Start a service only if it was running before the installation

Well, not sure to understand. Both of my actions, DisableTask and StopService are identical (i.e. both action should set a passed property to the value I want) and used one after the other at the same stage. I get a property for all the Scheduled Tasks that I want the status then all the services ...
by claudenoel
Tue Nov 13, 2018 2:22 pm
Forum: Common Problems
Topic: Log string not recorded from C# Custom Action
Replies: 3
Views: 4100
 
Jump to post

Re: Log string not recorded from C# Custom Action

Oh thanks. Yes it was without sequence for testing purposes. It works fine when used with sequence. :)
by claudenoel
Tue Nov 13, 2018 3:42 am
Forum: Common Problems
Topic: Start a service only if it was running before the installation
Replies: 13
Views: 12077
 
Jump to post

Re: Start a service only if it was running before the installation

Finally, I created a C# custom action. The method I used is to call a DisableTask custom action on which I declare CustomActionData using the following form: TaskName=SDMsgUpdate (SD);TaskProp=TASK_PROP
I recover these values in my custom action and set the specified properties to the state value ...
by claudenoel
Mon Nov 12, 2018 6:39 pm
Forum: Common Problems
Topic: Log string not recorded from C# Custom Action
Replies: 3
Views: 4100
 
Jump to post

Log string not recorded from C# Custom Action

I created a C# custom action which works fine. However, I want to record some data in the log file. I tried 2 methods:

session.Log("What I want to show in the log file");

session.Message(InstallMessage.Info, new Record { FormatString = "What I want to show in the log file" });

None of these work ...
by claudenoel
Fri Oct 26, 2018 6:19 pm
Forum: Common Problems
Topic: Start a service only if it was running before the installation
Replies: 13
Views: 12077
 
Jump to post

Re: Start a service only if it was running before the installation

Thanks Catalin.

I'm not familiar with powershell. Is it possible to store the $state value to be used at the end of the installation to re-enable the task via powershell?
by claudenoel
Fri Oct 26, 2018 12:58 pm
Forum: Common Problems
Topic: Start a service only if it was running before the installation
Replies: 13
Views: 12077
 
Jump to post

Re: Start a service only if it was running before the installation

I need to verify if a scheduled task is running and if so, stop it, make it disabled in order to not interfere with the setup, then enable it at the end of the installtion.
by claudenoel
Fri Oct 26, 2018 12:08 am
Forum: Building Installers
Topic: Hot to execute SQL scripts on several databases
Replies: 4
Views: 4865
 
Jump to post

Re: Hot to execute SQL scripts on several databases

Forget it, I found the solution with the script replacements. and it works fine!

Thanks for your help anyway ;-)
by claudenoel
Thu Oct 25, 2018 6:03 pm
Forum: Building Installers
Topic: Hot to execute SQL scripts on several databases
Replies: 4
Views: 4865
 
Jump to post

Re: Hot to execute SQL scripts on several databases

Ok. What about using a combobox?
I found the way to populate the combobox whith the existing databases. The user will have to select them one by one and press a button to execute the SQL scripts against the selected database.
Is there a way to execute the same script by replacing the USE satatement ...
by claudenoel
Thu Oct 25, 2018 5:45 pm
Forum: Common Problems
Topic: Start a service only if it was running before the installation
Replies: 13
Views: 12077
 
Jump to post

Re: Start a service only if it was running before the installation

Thanks. So, for several services, I need to copy the value AI_SERVICE_STATE in my own variables (properties) to be used later to start the service or not. Right?

Is there similar functions for scheduled tasks?

Go to advanced search