cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
boggle
Level 3

SSL binding in InstallShield 2011 Premier

Hi there


How does one set up a binding for https in InstallShield?
It seems to me that this would be a common requirement, so I'm probably just missing it somewhere.

I've searched the help files and forum and only come up with one other post asking the same thing with no replies (http://community.installshield.com/showthread.php?t=190640&page=3)


Thanks in advance for your help

Dana
Labels (1)
0 Kudos

(7) Replies
boggle
Level 3

Anyone? Surely there are a bunch of other people who need to do this with their applications?

I came up with another post today:

http://community.flexerasoftware.com/showthread.php?p=461897

but this works only for IIS 6.0 whereas a number of our installations are IIS 7.0, so hoping for a more generic solution.
0 Kudos
boggle
Level 3

Update: I tried using appcmd.exe from a LaunchAppAndWait in a custom action run After ISIISInstall.

appcmd set site "sitename" /bindings:http/*:80:,https/*:443:


Printing out the command line in the CA before attempting to run it, it all looks good. The return code from LaunchAppAndWait is 0, but the binding doesn't get set 😞

If I copy the command to a dos prompt, it runs fine, and the binding IS created. Does anyone know why this isn't working from the CA?

This is really quite frustrating, it's such a simple process in our current installer, and we invested time and money to move to InstallShield because it seemed to have better IIS support!

Any help would be much appreciated, although judging by the number of views and lack of replies, it doesn't seem to be something many people have struggled with 😕

Thanks in advance
0 Kudos
boggle
Level 3

I should mention that I've tried running the CA that calls appcmd as "Immediate" and "Deferred Execution in system context", neither work, neither give any error message.

I've tried to install to Win2K8 (32-bit) and Win2K8 R2 (64-bit). Neither work!

Any pros out there who can give me a hand? I've been stalled on this for a few weeks now, and I can't help but think that I must be missing something, that it shouldn't be this hard.

Please help?

Thanks in advance
0 Kudos
boggle
Level 3

Can anyone who has EVER set an HTTPS binding via InstallShield please just leave me a brief note saying how YOU do it?

Perhaps appcmd is not even the way to go. Are you using vbscript? Some other way? Any suggestions at all would be gratefully received.

Also, if anyone has any suggestions for a more active forum, that would be great too
0 Kudos
boggle
Level 3

More trial and error. I think I was scheduling it incorrectly before.
More info in my blog post.

Seriously, it wouldn't hurt to have a FAQ about this!
0 Kudos
OldBean
Level 5

1st, checking the value of LAAW_PARAMETERS.nLaunchResult instead of return value of LaunchAppAndWait function call might give some useful info.

2nd, I assume you use Vista/W2k8 and Up, if you turn off UAC, would your installer work?

3rd, If so, call LaunchApplication with LAAW_OPTION_USE_SHELLEXECUTE in a deferred execution in system context scheduled in between InstallInitialize and InstallFinalize

Let me know how it goes.
0 Kudos
boggle
Level 3

I should have replied a long time ago. Yes, I did eventually get it working using the method I outlined at the link above, with the changes you suggested around LAAW_PARAMETERS.nLaunchResult - thanks heaps for that, not having had the pleasure of windows dev before it hadn't occurred to me.

I should also say, if anyone has any further feedback on my noob solution, please do pass it on!
0 Kudos