<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Setup program in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/setup-program/m-p/1321150#M43780</link>
    <description>You may be able to access the path of setup.exe by looking at the command line parameters. The 0th parameter is usually the file executable and path. If you are writing in VB I don't know if it can access the 0th parameter but you can just use App.Path.&lt;BR /&gt;
&lt;BR /&gt;
I'd also recommend using an application installer instead ... Autodesk uses the Tarma installer and it is only $99. Not free like the other suggestion but seems to be pretty good. Autodesk uses it for the DWFViewer setup program. http://www.tarma.com</description>
    <pubDate>Wed, 11 May 2005 09:09:21 GMT</pubDate>
    <dc:creator>GTVic</dc:creator>
    <dc:date>2005-05-11T09:09:21Z</dc:date>
    <item>
      <title>Setup program</title>
      <link>https://forums.autodesk.com/t5/vba-forum/setup-program/m-p/1321146#M43776</link>
      <description>I am writing a setup program for some AutoCAD software I developed.  The software and setup program are packaged in a zip file that the user extracts to a temporary folder for installation.  The user then double-clicks the setup.exe to install the software.  I need to find the path of the temporary folder the user extracted the files to.  What is the simplest and safest way to do this?  Currently, I am using a Filefind function that uses the GetFileLocation API to locate where the setup.exe is located.  But this method could possibly fail if the user had already extracted the setup.exe  in two or more folders that may in fact have only some of the program files in them.  So again, my question is: How do I know what folder a user has double-clicked a file in?</description>
      <pubDate>Tue, 10 May 2005 16:47:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/setup-program/m-p/1321146#M43776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-10T16:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Setup program</title>
      <link>https://forums.autodesk.com/t5/vba-forum/setup-program/m-p/1321147#M43777</link>
      <description>Just a suggestion but I abandoned all setup program creation after&lt;BR /&gt;
discovering Inno Setup. There is also something called Acad Install that&lt;BR /&gt;
works in conjunction with Inno which eases AutoCAD configuration changes.&lt;BR /&gt;
You really should check it out.&lt;BR /&gt;
&lt;BR /&gt;
Dale&lt;BR /&gt;
&lt;BR /&gt;
&lt;GORDY&gt; wrote in message news:4840129@discussion.autodesk.com...&lt;BR /&gt;
I am writing a setup program for some AutoCAD software I developed.  The&lt;BR /&gt;
software and setup program are packaged in a zip file that the user extracts&lt;BR /&gt;
to a temporary folder for installation.  The user then double-clicks the&lt;BR /&gt;
setup.exe to install the software.  I need to find the path of the temporary&lt;BR /&gt;
folder the user extracted the files to.  What is the simplest and safest way&lt;BR /&gt;
to do this?  Currently, I am using a Filefind function that uses the&lt;BR /&gt;
GetFileLocation API to locate where the setup.exe is located.  But this&lt;BR /&gt;
method could possibly fail if the user had already extracted the setup.exe&lt;BR /&gt;
in two or more folders that may in fact have only some of the program files&lt;BR /&gt;
in them.  So again, my question is: How do I know what folder a user has&lt;BR /&gt;
double-clicked a file in?&lt;/GORDY&gt;</description>
      <pubDate>Tue, 10 May 2005 20:21:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/setup-program/m-p/1321147#M43777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-10T20:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Setup program</title>
      <link>https://forums.autodesk.com/t5/vba-forum/setup-program/m-p/1321148#M43778</link>
      <description>Dale,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the tip.  I will investigate.</description>
      <pubDate>Tue, 10 May 2005 20:33:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/setup-program/m-p/1321148#M43778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-10T20:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Setup program</title>
      <link>https://forums.autodesk.com/t5/vba-forum/setup-program/m-p/1321149#M43779</link>
      <description>I have some sample scripts for Inno etc. that might make it easier to see&lt;BR /&gt;
what's going on. Just let me know If your interested.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;GORDY&gt; wrote in message news:4840571@discussion.autodesk.com...&lt;BR /&gt;
Dale,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the tip.  I will investigate.&lt;/GORDY&gt;</description>
      <pubDate>Tue, 10 May 2005 22:55:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/setup-program/m-p/1321149#M43779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-10T22:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Setup program</title>
      <link>https://forums.autodesk.com/t5/vba-forum/setup-program/m-p/1321150#M43780</link>
      <description>You may be able to access the path of setup.exe by looking at the command line parameters. The 0th parameter is usually the file executable and path. If you are writing in VB I don't know if it can access the 0th parameter but you can just use App.Path.&lt;BR /&gt;
&lt;BR /&gt;
I'd also recommend using an application installer instead ... Autodesk uses the Tarma installer and it is only $99. Not free like the other suggestion but seems to be pretty good. Autodesk uses it for the DWFViewer setup program. http://www.tarma.com</description>
      <pubDate>Wed, 11 May 2005 09:09:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/setup-program/m-p/1321150#M43780</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2005-05-11T09:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Setup program</title>
      <link>https://forums.autodesk.com/t5/vba-forum/setup-program/m-p/1321151#M43781</link>
      <description>Hi Gordy,&lt;BR /&gt;
&lt;BR /&gt;
I can confirm Dale's advice,&lt;BR /&gt;
&lt;BR /&gt;
Be careful with the Inno Setup NGs.  Many of the responders only know the&lt;BR /&gt;
words;&lt;BR /&gt;
"Read the help file"&lt;BR /&gt;
&lt;BR /&gt;
The text below is an Inno Setup script  I used for installing one of our&lt;BR /&gt;
programs.  I tried to post it as a file, but the file posting on the NG&lt;BR /&gt;
still doesn't work for me.&lt;BR /&gt;
&lt;BR /&gt;
Watch the word wrap as Inno Setup uses long lines&lt;BR /&gt;
It should help you get started.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
CADApps&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
&lt;BR /&gt;
; Trial Script to work with AcadInstall&lt;BR /&gt;
; Prepared by Laurie 17 Oct 2002&lt;BR /&gt;
;Lines for AcadInstall added as per it's help file&lt;BR /&gt;
&lt;BR /&gt;
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!&lt;BR /&gt;
;  Editing this file&lt;BR /&gt;
; Step 1&lt;BR /&gt;
;  Do a search and replace for ..\iss\Program with the&lt;BR /&gt;
;  directory from which you are creating the install program&lt;BR /&gt;
; Step 2&lt;BR /&gt;
&lt;BR /&gt;
; Step 4&lt;BR /&gt;
;  Do a search and replace of "..\CADAppsLicensing" to the directory&lt;BR /&gt;
;  holding the VBA routines and the CADApps_Licence6.dll&lt;BR /&gt;
; Step 5&lt;BR /&gt;
;  Save the ISS file with a relevant name&lt;BR /&gt;
; Step 6&lt;BR /&gt;
;  Compile and test&lt;BR /&gt;
; Step 7&lt;BR /&gt;
;  Fix any errors as required and go to Step 5&lt;BR /&gt;
&lt;BR /&gt;
[Setup]&lt;BR /&gt;
AppName=Batter Drafter&lt;BR /&gt;
AppVerName=Batter Drafter L3.1&lt;BR /&gt;
OutputBaseFileName=Batter Drafter L3_1 20030512 Install&lt;BR /&gt;
AppPublisher=CADApps Australia Pty Ltd&lt;BR /&gt;
AppPublisherURL=http://www.cadapps.com.au&lt;BR /&gt;
AppSupportURL=http://www.cadapps.com.au&lt;BR /&gt;
AppUpdatesURL=http://www.cadapps.com.au&lt;BR /&gt;
DefaultDirName=c:\Program Files\CADApps&lt;BR /&gt;
;;DefaultGroupName=3D Lines from Fieldbook&lt;BR /&gt;
AllowNoIcons=yes&lt;BR /&gt;
DisableStartupPrompt=Yes&lt;BR /&gt;
DirExistsWarning=No&lt;BR /&gt;
LicenseFile=CADApps Licence.txt&lt;BR /&gt;
InfoBeforeFile=Message before.txt&lt;BR /&gt;
;;InfoAfterFile=Message After.txt&lt;BR /&gt;
;;  Flags: recursesubdirs&lt;BR /&gt;
[Messages]&lt;BR /&gt;
;;ReadyLabel1=Laurie Message  Setup is now ready to begin installing [name]&lt;BR /&gt;
on your computer.&lt;BR /&gt;
SelectDirDesc=Where should the Program Files be installed?&lt;BR /&gt;
SelectDirLabel=Select the folder where you would like the Program Files to&lt;BR /&gt;
be installed, then click Next. Note that the install path to be used shows&lt;BR /&gt;
in the TOP dialog box&lt;BR /&gt;
&lt;BR /&gt;
; The line below calls up the option to install the demo project.  yet to&lt;BR /&gt;
see how to actually do it.&lt;BR /&gt;
&lt;BR /&gt;
[Files]&lt;BR /&gt;
&lt;BR /&gt;
Source: "F:\VBAPrograms\CADApps_BatterDrafterL3.dvb"; DestDir:&lt;BR /&gt;
"{app}\programs"; Flags: ignoreversion&lt;BR /&gt;
Source: "..\Batter Drafter\Menus\*.mnl";  DestDir: "{app}\menus";&lt;BR /&gt;
Source: "..\Batter Drafter\Menus\*.mns";  DestDir: "{app}\menus";&lt;BR /&gt;
;; Install the VB runtime files&lt;BR /&gt;
&lt;BR /&gt;
;; The vbrun60sp5 is the MS method of installing the runtime files&lt;BR /&gt;
;; It means we do not need to muck about with the others&lt;BR /&gt;
Source: "..\..\VB Runtime\vbrun60sp5.exe"; DestDir: "{tmp}"&lt;BR /&gt;
&lt;BR /&gt;
;; Copy and register the CADApps Licence file&lt;BR /&gt;
Source: "..\..\CA_Licensing\CADApps_Licence7.dll";  DestDir: "{sys}";&lt;BR /&gt;
Flags: uninsneveruninstall sharedfile regserver&lt;BR /&gt;
Source: "..\..\CA_Licensing\GMAv7.exe";  DestDir: "{app}\temp"&lt;BR /&gt;
&lt;BR /&gt;
;; copies all BMPs for toolbar icons, copies all pallettes, copies&lt;BR /&gt;
Plants.mdb to relevant AutoCAD paths&lt;BR /&gt;
Source: "..\..\CA_Licensing\Menu update.exe";  DestDir: "{app}\temp"&lt;BR /&gt;
&lt;BR /&gt;
; Write the installation directory to the registry&lt;BR /&gt;
[Registry]&lt;BR /&gt;
Root: HKCU; Subkey: "Software\VB and VBA Program Settings\CADApps\Batter&lt;BR /&gt;
Drafter"; ValueType: string  ; ValueName: "Installation Path" ; ValueData:&lt;BR /&gt;
"{app}\Programs" ;Flags: uninsdeletekeyifempty&lt;BR /&gt;
Root: HKCU; Subkey: "Software\VB and VBA Program Settings\CADApps\Batter&lt;BR /&gt;
Drafter"; ValueType: string  ; ValueName: "Version" ; ValueData: "L3 1"&lt;BR /&gt;
;Flags: uninsdeletekeyifempty&lt;BR /&gt;
&lt;BR /&gt;
[Run]&lt;BR /&gt;
; Waituntilidle ends up hiding the licence dialog box below the restart&lt;BR /&gt;
; Nowait puts it on top of the restart as required&lt;BR /&gt;
; GMAv7.exe gets the MAC address and using the Parameter returns the program&lt;BR /&gt;
to file for licensing&lt;BR /&gt;
;Filename: "{tmp}\vbrun60sp5.exe.exe"  Description: "Install VB6 run time&lt;BR /&gt;
files"; Flags: nowait&lt;BR /&gt;
Filename: "{app}\temp\GMAv7.exe";  Parameters: "Batter Drafter" ;&lt;BR /&gt;
Description: "Get licence"; Flags: nowait&lt;BR /&gt;
; Filename: "{app}\temp\Menu update.exe"; Parameters: "{app}\Programs" ;&lt;BR /&gt;
Description: "Update menus"; Flags: nowait&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
;&lt;BR /&gt;
;[UninstallRun]&lt;BR /&gt;
;Filename:  "{app}\Temp\AcadInst.exe"; Parameters: -U</description>
      <pubDate>Wed, 11 May 2005 11:25:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/setup-program/m-p/1321151#M43781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-11T11:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Setup program</title>
      <link>https://forums.autodesk.com/t5/vba-forum/setup-program/m-p/1321152#M43782</link>
      <description>Yes, of course, I've used App.Path before in one of my VB apps.  I completely forgot about it.&lt;BR /&gt;
&lt;BR /&gt;
Many thanks to everyone for their willingness to help me with this problem.</description>
      <pubDate>Wed, 11 May 2005 15:21:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/setup-program/m-p/1321152#M43782</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-11T15:21:19Z</dc:date>
    </item>
  </channel>
</rss>

