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 11 matches

Go to advanced search

by tmwoods
Tue Nov 30, 2021 12:42 am
Forum: Common Problems
Topic: msiexec with newinst
Replies: 1
Views: 4033
 
Jump to post

msiexec with newinst

I am trying to use the /newinst argument but with an msi package. When I run it I get the Windows Installer pop-up with available arguments (/newinst is not one of them).

Is the /newinst argument only available with exe packages? Am I doing something wrong?

My command:
>msiexec /i myInstaller.msi ...
by tmwoods
Tue Nov 23, 2021 6:50 pm
Forum: Common Problems
Topic: Installer hangs for 10-15 minutes
Replies: 1
Views: 5479
 
Jump to post

Installer hangs for 10-15 minutes

I have a rather light-weight installer that executes a few custom actions and installs a Windows Service. In the install action, it appears to hang before even executing the action for anywhere between 10-15 minutes. I am executing this install silently with msiexec.

The logs:
MSI (s) (6C:48) [09 ...
by tmwoods
Tue Nov 23, 2021 6:35 pm
Forum: Common Problems
Topic: APPDIR being reset halfway during silent msiexec install
Replies: 3
Views: 6201
 
Jump to post

Re: APPDIR being reset halfway during silent msiexec install

I ended up just building a new package from scratch, repeating all the same config steps. This one works - still no idea why the other one doesn't but you can mark this as resolved. Probably something I am overlooking somewhere but not worth the investigation.
by tmwoods
Tue Nov 23, 2021 12:29 am
Forum: Common Problems
Topic: APPDIR being reset halfway during silent msiexec install
Replies: 3
Views: 6201
 
Jump to post

APPDIR being reset halfway during silent msiexec install

I am using msiexec to install my program and halfway through the installation APPDIR is being 'reset'.

My code to install:
c:\zips>msiexec /i myMSI.msi AI_DEBUGLOG=1 /L*V "C:\test\log.log" /quiet /qn APPDIR="C:\Program Files (x86)\myAppDir\someNewFolder"

This seems to work because in the log I ...
by tmwoods
Tue May 19, 2020 9:53 pm
Forum: Building Installers
Topic: Property in Custom Action using name, not value
Replies: 3
Views: 3497
 
Jump to post

Re: Property in Custom Action using name, not value

I replaced the [APPDIR] references and just built the paths in my custom action and the problem went away.

It is still a mystery why they would log properly but fail in a loop, but so it goes.

Thanks,
Trevor
by tmwoods
Fri May 01, 2020 7:09 pm
Forum: Building Installers
Topic: Property in Custom Action using name, not value
Replies: 3
Views: 3497
 
Jump to post

Property in Custom Action using name, not value

This is a bit confusing to explain, but I have a problem where a property being retrieved in a C# custom action is using the name of the variable instead of the value. What is strange though is that I can see in the log it has the correct value, but when I use it then it uses the property name ...
by tmwoods
Thu Apr 30, 2020 4:52 pm
Forum: Common Problems
Topic: Property in Custom Action using name, not value
Replies: 1
Views: 2013
 
Jump to post

Property in Custom Action using name, not value

This is a bit confusing to explain, but I have a problem where a property being retrieved in a C# custom action is using the name of the variable instead of the value. What is strange though is that I can see in the log it has the correct value, but when I use it then it uses the property name ...
by tmwoods
Sat Dec 21, 2019 12:24 am
Forum: Building Installers
Topic: Using Files and Folders during installation
Replies: 5
Views: 5850
 
Jump to post

Re: Using Files and Folders during installation

OK, so I figured it out but want to post in case someone else stumbles across the same problem.

To use temporary files with a custom action, you can't just click 'Add Temporary Files' from the Files and Folders screen then use them. That will default them to be in the Windows Volume -> Windows ...
by tmwoods
Fri Dec 20, 2019 8:41 pm
Forum: Building Installers
Topic: Using Files and Folders during installation
Replies: 5
Views: 5850
 
Jump to post

Re: Using Files and Folders during installation

Hi Catalin,

Just to give as much info as possible - I have also tried using the Temporary Files option but the files do not exist in the path specified. In my custom action I have the following code:

string tablesFolder = session["Tables_Dir"];
string spFolder = session["StoredProcedures_Dir ...
by tmwoods
Fri Dec 20, 2019 6:45 pm
Forum: Building Installers
Topic: Using Files and Folders during installation
Replies: 5
Views: 5850
 
Jump to post

Re: Using Files and Folders during installation

Hi Catalin,

Thanks for the reply. My custom action now throws an exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.Deployment.WindowsInstaller.InstallerException: Cannot access session details from a non-immediate ...
by tmwoods
Thu Dec 19, 2019 10:42 pm
Forum: Building Installers
Topic: Using Files and Folders during installation
Replies: 5
Views: 5850
 
Jump to post

Using Files and Folders during installation

My goal: to run a custom action during install that executes SQL scripts to update a database.
My problem : I can't access the Files and Folders contents during install.
More detail: We regularly generate hundreds of SQL scripts so using the manual SQL Script functionality in Advanced Installer ...

Go to advanced search