Author Topic: Creating an Installer with Inno Setup tutorial now online  (Read 46570 times)

BazzaCAD

  • OpenDCL Webmaster
  • Administrator
  • Hero Member
  • *****
  • Posts: 853
  • Cylons will kill you
    • OpenDCL
Creating an Installer with Inno Setup tutorial now online
« on: April 16, 2009, 01:45:16 PM »
This tutorial describes how to create an installer to deploy your ODCL application & install the ODCL runtime at the same time.

By Lance Gordon (Thanks)
You can download it here:
http://opendcl.com/wordpress/?page_id=10
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

jbuzbee

  • Member
  • *
  • Posts: 98
    • JamesDBuzbee.com
Re: Creating an Installer with Inno Setup tutorial now online
« Reply #1 on: January 11, 2011, 01:07:20 PM »
A very, very long time ago Bryan Blattel had on his CadWerx website and example of how to use pascal scripting to do stuff like add folders to AutoCAD's search path and even load menus in Inno Setup exe's.

I used to use it with great success when I managed AutoCAD for several architectural firms.  Does anyone have any info?  This would be a great tool for setups.

If I find anything I'll post it.

jb

Oh, Happy New Year!!

jbuzbee

  • Member
  • *
  • Posts: 98
    • JamesDBuzbee.com
Re: Creating an Installer with Inno Setup tutorial now online
« Reply #2 on: January 11, 2011, 01:38:27 PM »
Wow, can't believe I found it.  It's a copyrighted exe though.  It was a free download - but could we use and distribute here?

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 3059
    • Outside The Box
Re: Creating an Installer with Inno Setup tutorial now online
« Reply #3 on: January 11, 2011, 02:50:54 PM »
Don't post anything unless you've first contacted Byron and asked permission (and I'll bet he will gladly permit it if you ask).

jbuzbee

  • Member
  • *
  • Posts: 98
    • JamesDBuzbee.com
Re: Creating an Installer with Inno Setup tutorial now online
« Reply #4 on: January 11, 2011, 03:32:39 PM »
Good idea Owen - thanks.  This is a great tool for people developing programs.

Danner

  • Full Member
  • ***
  • Posts: 105
Re: Creating an Installer with Inno Setup tutorial now online
« Reply #5 on: January 18, 2011, 02:27:33 AM »
I for one, would be very interested in this.  I'll be following this thread with great interest.

jbuzbee

  • Member
  • *
  • Posts: 98
    • JamesDBuzbee.com
Re: Creating an Installer with Inno Setup tutorial now online
« Reply #6 on: February 02, 2011, 07:05:00 AM »
Havn't heard from Byron - don't even know if the email I have is any good.

I'm having trouble with the msiexec.exe syntax:

Filename: msiexec.exe; Parameters: “/i “”{app}\OpenDCL.Runtime.5.1.0.2.msi”” /qn”

I get the dialog (which means there is something wrong with the syntax).  Any suggestions?

Thanks!!

jbuzbee

  • Member
  • *
  • Posts: 98
    • JamesDBuzbee.com
Re: Creating an Installer with Inno Setup tutorial now online
« Reply #7 on: February 02, 2011, 07:30:15 AM »
Got it.  I cut and pasted from the pdf and there was some character confusion in the translation.

poulhein

  • Member
  • *
  • Posts: 4
Re: Creating an Installer with Inno Setup tutorial now online
« Reply #8 on: February 22, 2011, 02:19:37 AM »
Any news?

jbuzbee

  • Member
  • *
  • Posts: 98
    • JamesDBuzbee.com
Re: Creating an Installer with Inno Setup tutorial now online
« Reply #9 on: February 23, 2011, 11:05:00 AM »
Unfortunately no.  The only thing I would use it for was adding a menu to menugroups.  Pretty much everything else (paths, loading apps, etc.) can be handled in the .mns file.  Oh well.  If I here anything Ilet you all know.

kenkrupa

  • Member
  • *
  • Posts: 49
Re: Creating an Installer with Inno Setup tutorial now online
« Reply #10 on: June 23, 2011, 12:10:41 PM »
This was very helpful, and seems to work just fine (so far I have tested with Studio uninstalled so I could see that it worked). I have a few concerns though.

UninstallRun. Let's say I am installing Runtime.6.0.2.3 with my app, and someone has already done so with their app. If my app gets uninstalled, what happens - does the Runtime that was already installed get removed? Or is this method somehow smart enough to know that it did not get installed with my app and leave it?

Also, what if that other app that installed the runtime before me gets uninstalled - will that remove the runtime leaving my app without it?

What if the user is running R2010 with some other app that has installed the Runtime.5 - does that app now load the Runtime.6 that I installed, with no problem? Or what?

These are questions that have made me shy away from using OpenDCL until I had a real need. Now that I'm into it, I love it. But I'd feel better about going live with it until I know the answers.

Fred Tomke

  • OpenDCL Technician
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2070
  • [ Mr. Bad Guy ]
    • Kommunale Entwicklungsplanung auf digitaler Basis - digital landscape and urban design
Re: Creating an Installer with Inno Setup tutorial now online
« Reply #11 on: June 23, 2011, 12:40:23 PM »
Hi,

Unfortunately, I cannot help you very much because I have no experiences with the installer. As far as I remember another topic with such a question a counter shall be work in the background which tells the uninstaller if any other application is still using this component (OpenDCL in this case). As far as I remember the Runtime.msi won't install if any newer release is already installed, but a newer release will uninstall the existing and install the newer files after that. There is no way for side-by-side installation.

I'm sure that others can tell you more about it. We are distributing the runtime files with our program files and we're not using the msi. We are loading OpenDCL by the application which is wrapping  and controlling AutoCAD as an external application.

Regards,
Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 3059
    • Outside The Box
Re: Creating an Installer with Inno Setup tutorial now online
« Reply #12 on: June 23, 2011, 01:05:32 PM »
As long as everyone follows the rules and installs the runtime via the standard .msm or .msi, everything will work correctly for every OpenDCL based application. Windows Installer keeps a reference count and will not remove the files until the last relying application is uninstalled. As long as your application requires the runtime, it will remain installed.

Unfortunately some application developers do not follow the rules, so there is a risk of your app getting clobbered. A reinstall should fix the problem in that case.

Fred Tomke

  • OpenDCL Technician
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2070
  • [ Mr. Bad Guy ]
    • Kommunale Entwicklungsplanung auf digitaler Basis - digital landscape and urban design
Re: Creating an Installer with Inno Setup tutorial now online
« Reply #13 on: June 23, 2011, 02:55:46 PM »
kenkrupa,

I recommend you to check up the existing OpenDCL runtime when your application is loading at AutoCAD startup. Since the installed runtime can be manually uninstalled in Windows control panel > software, it is worth to check if OpenDCL runtime is still installed and if it is the release your application needs. If not, throw an alert with the hint of reinstall.

Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 3059
    • Outside The Box
Re: Creating an Installer with Inno Setup tutorial now online
« Reply #14 on: June 23, 2011, 04:13:43 PM »
Fred, just to clarify, I think that if an application installs the runtime via the app's own MSI (i.e. by using the OpenDCL Runtime MSM merge module instead of the standalone OpenDCL Runtime MSI), there will be no separate entry in Control Panel.