Search found 37 matches

Go to advanced search

by benhinman
Tue Dec 07, 2010 1:16 pm
Forum: Common Problems
Topic: IIS Virtual Directory re-creation on major upgrade.
Replies: 1
Views: 3269
 
Jump to post

IIS Virtual Directory re-creation on major upgrade.

Hi,

On a major upgrade, IIS virtual directories seem to be re-created.

This is an issue for me because it means any custom configuration of this virtual directory will be lost on an upgrade.

Please note that I am not referring to the "error policy" combobox on the IIS virtual directory page.

Is ...
by benhinman
Fri Nov 12, 2010 11:18 am
Forum: Common Problems
Topic: Run as administrator.
Replies: 4
Views: 12861
 
Jump to post

Re: Run as administrator.

Thanks for getting back to me.

The problem with the solution in the linked thread is that if you require elevated permissions (as you would if UAC is turned on on Vista+) the batch file will fail.

My solution for now is:

I condition 2 custom actions on the VersionNT property. The first called ...
by benhinman
Thu Nov 11, 2010 10:41 am
Forum: Common Problems
Topic: Run as administrator.
Replies: 4
Views: 12861
 
Jump to post

Run as administrator.

Hi,

Looking to run a file as administrator - thus using the "RunAsAdmin" predefined UI custom action setting the RunAsAdminFile in the process.

All works fine on a Windows 7 machine but Windows 2003 or similar (i.e. pre-Vista) doesn't seem to do anything...

Thanks,
Ben
by benhinman
Wed Oct 20, 2010 11:34 am
Forum: Common Problems
Topic: Compare previous and new product versions on upgrade.
Replies: 6
Views: 10788
 
Jump to post

Re: Compare previous and new product versions on upgrade.

Instead of performing a search, I added the following attached custom action after "FindRelatedProducts":

function GetOldProductMajorVersion() {
try {
Session.Property("OLD_PRODUCT_MAJOR_VERSION") = new ActiveXObject("WScript.Shell").RegRead("HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion ...
by benhinman
Wed Oct 20, 2010 10:11 am
Forum: Common Problems
Topic: Compare previous and new product versions on upgrade.
Replies: 6
Views: 10788
 
Jump to post

Re: Compare previous and new product versions on upgrade.

I tried the following search:

SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\[OLDPRODUCTS]

on VersionMajor.

but to no avail.

I imagine OLDPRODUCTS is not set before a search is conducted - any way to make this happen?!?!

Thanks,
Ben
by benhinman
Wed Oct 20, 2010 8:58 am
Forum: Common Problems
Topic: Compare previous and new product versions on upgrade.
Replies: 6
Views: 10788
 
Jump to post

Re: Compare previous and new product versions on upgrade.

Hi Gabriel,

Thanks for the reply. We always increment the third version part when issuing an upgrade. Sorry that my example code did not reflect this.

Still not sure on how to get the previous product version...

If I reference the ProductVersion value I assume this returns the version about to be ...
by benhinman
Tue Oct 19, 2010 3:16 pm
Forum: Common Problems
Topic: Compare previous and new product versions on upgrade.
Replies: 6
Views: 10788
 
Jump to post

Compare previous and new product versions on upgrade.

Hi,

I would like to show/hide a label based on whether an upgrade is coming from a major version lower than the new product version.

e.g. if upgrading from 11.0.0.0 to 12.0.0.0 then show label. If upgrading from 12.0.0.1 to 12.0.0.2 then don't show label.

Is this possible?

Thanks,
Ben
by benhinman
Mon Oct 18, 2010 4:11 pm
Forum: Common Problems
Topic: Command line max length.
Replies: 2
Views: 3678
 
Jump to post

Re: Command line max length.

Brilliant!

Thanks,
Ben
by benhinman
Mon Oct 18, 2010 3:48 pm
Forum: Common Problems
Topic: Command line max length.
Replies: 2
Views: 3678
 
Jump to post

Command line max length.

Hi,

I need to pass a number of parameters to a custom action on the command line. Specifically:

/LBL_PORT="[LBL_PORT]" /AUDIT_SERVER="[AUDIT_SERVER]" /AUDIT_PORT="[AUDIT_PORT]" /AUTHENTICATION="[AUTHENTICATION]" /LICENCE_PATH="[LICENCE_PATH]" /SERVICE_DESK_DATABASE_SERVER="[SERVICE_DESK_DATABASE ...
by benhinman
Thu Oct 14, 2010 9:00 pm
Forum: Common Problems
Topic: .NET Installexception doesn't show a proper error dlg
Replies: 4
Views: 5517
 
Jump to post

Re: .NET Installexception doesn't show a proper error dlg

Hate to ressurect this but Laurin was correct.

There was a time - I cannot remember exactly when, but an exception throw from a .NET custom action would be displayed in an error dialog.

As it stands, I have to catch the exception, show a message box using windows forms, then finally throw an ...
by benhinman
Mon Sep 07, 2009 4:24 pm
Forum: Common Problems
Topic: ComboBox Set Property
Replies: 5
Views: 11119
 
Jump to post

Re: ComboBox Set Property

Hmm.

Unfortunately I have a more advanced scenario. The combobox value is entirely seperate from the textbox value (and property).

Lets say the combobox represents "database server type" and has the options "SQL Server" and "Oracle".

When you select one of those options, I would like to set a ...
by benhinman
Mon Sep 07, 2009 11:00 am
Forum: Common Problems
Topic: ComboBox Set Property
Replies: 5
Views: 11119
 
Jump to post

ComboBox Set Property

Hi All,

I would like to set a seperate property when a combobox item has been selected.

In real terms, this means I would like to set the value of a textbox dependant on what a user selects from a dropdown.

Thanks,
Ben
by benhinman
Thu Aug 06, 2009 11:06 am
Forum: Common Problems
Topic: Conditional IIS anonymous access.
Replies: 3
Views: 5491
 
Jump to post

Re: Conditional IIS anonymous access.

Thanks for the quick reply.

Just to confirm, I am guessing I need to place this custom action in the InstallFinalize standard action? Also, is there any particular method I need to override in this custom action or can I simply override the install method (.NET custom action).

Thanks in advance,
Ben
by benhinman
Mon Aug 03, 2009 1:33 pm
Forum: Common Problems
Topic: Conditional IIS anonymous access.
Replies: 3
Views: 5491
 
Jump to post

Conditional IIS anonymous access.

Hiya,

I am looking to find out if there is a way to condition anonymous access in IIS dependant on options selected in the user interface/elsewhere.

If this isn't possible in the Advanced Installer UI, but is possible in the XML AIP file, I would still be interested.

Thanks in advance,
Ben
by benhinman
Mon Jun 15, 2009 1:48 pm
Forum: Common Problems
Topic: .NET Custom Action exception handling
Replies: 3
Views: 4670
 
Jump to post

Re: .NET Custom Action exception handling

So is this actually a Windows Installer bug and are Microsoft putting any effort into resolving it?

It seems 2869 is a catch-all for everything they forgot to handle!

Go to advanced search