Author Topic: Compiler Error Required function or procedure 'InstallAutoOSUpdater' not found  (Read 5951 times)

kool_breeze

  • Newbie
  • *
  • Posts: 6
Thanks for all of your help :)

Randem

  • Administrator
  • Hero Member
  • *****
  • Posts: 2627
InnoScript never had any encryption, it is possible that you are referring to Inno Setup.
Of course any Inno Setup parameters can be used in InnoScript. From Inno Setup Help

[Setup]: Encryption
Valid values:
 yes or no 
Default value:
 no 

Description:
If set to yes, files that are compiled into the installation (via [Files] section entries) will be encrypted using ARCFOUR encryption, with a 160-bit key derived from the value of the Password [Setup] section directive.

Because of encryption import/export laws in some countries, encryption support is not included in the main Inno Setup installer and must be downloaded and installed separately if you wish to use it. See the Inno Setup Downloads [external link] page for more information.

If encryption is enabled and you call the ExtractTemporaryFile function from the Code section prior to the user entering the correct password, the function will fail unless the noencryption flag is used on the [Files] section entry for the file.

The key used for encryption is a 160-bit SHA-1 hash of 64-bit random salt plus the value of Password.


I never mentioned ISO's, I don't understand that reference. Only exe's are created.

Creating an empty folder is simple, just use the regular Inno Setup verbiage for that and include it in the template file in the proper section.
I.E.

[Dirs]
Name: "{app}\data"
Name: "{app}\bin"


The simplest way to start a script is to just to create a project using the vbp file then asking InnoScript to create the script. This will give you a basic script that should have the missing files that you need. Then get the files to add.

kool_breeze

  • Newbie
  • *
  • Posts: 6
Thanks.

If I am understanding your directions correctly, by letting innoscript find the files I need to use the support directory and this is great for iso's, I want a exe with everything so don't I need to use the os autoupdater.
also is there a way to create a empty directory other than manually editing the script, if I just add it inno setup will flag it?


Also didn't your previous versions have a place to add encryption?

I bought your older versions twice from you.

Randem

  • Administrator
  • Hero Member
  • *****
  • Posts: 2627
Uploaded new version with the fix for this...

Randem

  • Administrator
  • Hero Member
  • *****
  • Posts: 2627
Yes, you are correct. I changed the template file for the updater to reflect this. Did you let InnoScript automatically complete the script for you?

The AutoOSUpdater.tpl template should look like this:

[Run]
Filename: {tmp}\VB_VC_DCOM_MDAC_JET_AutoSetup.exe; Parameters: /NORESTART /VERYSILENT WorkingDir: {tmp}; MinVersion: 4.1,4.0

kool_breeze

  • Newbie
  • *
  • Posts: 6
Hi Randem,


This probably the wrong page for this.

[Run]

Filename: "{src}\VB_DCOM_MDAC_JET_AutoSetup.exe"; Parameters: /NORESTART /VERYSILENT WorkingDir: {tmp}; MinVersion: 4.1,4.0

You fixed the above line but the _VC_ is missing and I think there should be a semi colon after /VERYSILENT;

Randem

  • Administrator
  • Hero Member
  • *****
  • Posts: 2627
Are you using the template function to add your font entries in? If not that is the best way to do it so that you can regenerate the script as many times as you want without having to edit the script after you generate it. Just go to the template section the select the template with your projects name then add the sections in that file that you need to add/subtract/modify IE.

[Files]
; Font Entries - Start
Source: C:\Windows\Fonts\calibri.ttf; DestDir: {fonts}; FontInstall: Calibri (TrueType); Flags: onlyifdoesntexist uninsneveruninstall nocompression
Source: C:\Windows\Fonts\calibrii.ttf; DestDir: {fonts}; FontInstall: Calibri Italic (TrueType); Flags: onlyifdoesntexist uninsneveruninstall nocompression
Source: C:\Windows\Fonts\calibrib.ttf; DestDir: {fonts}; FontInstall: Calibri Bold (TrueType); Flags: onlyifdoesntexist uninsneveruninstall nocompression
Source: C:\Windows\Fonts\calibriz.ttf; DestDir: {fonts}; FontInstall: Calibri Bold Italic (TrueType); Flags: onlyifdoesntexist uninsneveruninstall nocompression
Source: C:\Windows\Fonts\tahoma.ttf; DestDir: {fonts}; FontInstall: Tahoma (TrueType); Flags: onlyifdoesntexist uninsneveruninstall nocompression
Source: C:\Windows\Fonts\tahomabd.ttf; DestDir: {fonts}; FontInstall: Tahoma Bold (TrueType); Flags: onlyifdoesntexist uninsneveruninstall nocompression
; Font Entries - End


Thats it! Each time you regenerate your script these lines will automatically be added to your script. No more editing...

Randem

  • Administrator
  • Hero Member
  • *****
  • Posts: 2627
Yes, Run the script generation without selecting the AutoOSUpdater and InnoScript will place into the script all the individual files needed then you can download those files and it will be a far better and smaller installation.

kool_breeze

  • Newbie
  • *
  • Posts: 6
Ok, figured it out. That was leftover from the legacy part of InnoScript that used the very large OS updater and that portion did not get removed. Change the line to read:

Source: D:\GPRMMain\GPRM\Scripts\Output\Support\VB_VC_DCOM_MDAC_JET_AutoSetup.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression;Tasks: AutoOSUpdater;

That should solve this. We will remove that error from the application. Thanks for reporting this error.

Allowing InnoScript to solve the OS Updater on it's own would result in a smaller installation without this error.


So by downloading the individual files and placing them in output I could get rid of the auto updater line?




thanks again.

kool_breeze

  • Newbie
  • *
  • Posts: 6
Thanks for the fast response.


Yes, I have put it in every folder that I can think of and the error continues.

See attachment.

44megs is not that big for us, thought it would be easier and I wouldn't miss anything. Lazy  :D

the updater is under TASK and Run.


Randem

  • Administrator
  • Hero Member
  • *****
  • Posts: 2627
Ok, figured it out. That was leftover from the legacy part of InnoScript that used the very large OS updater and that portion did not get removed. Change the line to read:

Source: D:\GPRMMain\GPRM\Scripts\Output\Support\VB_VC_DCOM_MDAC_JET_AutoSetup.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression;Tasks: AutoOSUpdater;

That should solve this. We will remove that error from the application. Thanks for reporting this error.

Allowing InnoScript to solve the OS Updater on it's own would result in a smaller installation without this error.

Randem

  • Administrator
  • Hero Member
  • *****
  • Posts: 2627
There is also a Code section missing. I am looking into this...

Randem

  • Administrator
  • Hero Member
  • *****
  • Posts: 2627
Welcome kool_breeze,

The issue is that you may not have selected the task for the Updater. Also have you downloaded the Automatic Updater and placed it where it could be found? If the file is not there then it cannot be added to the script. You may not want the very large updater in your script when InnoScript will automatically place smaller versions of the installations that you need into your script. If you want to do this just deselect the AutoOSUpdater from your project and re-run the script and it will place the smaller files into your script. Of course they will need to be downloaded and placed into a location where they can be found also.

The proper location for files of this nature would be located under your Output folder location where the install exe is created in the Support folder.

NOTE: You can download all files from our website. Just look in the download menu at the top of the InnoScript screen.

kool_breeze

  • Newbie
  • *
  • Posts: 6
Compiler Error Required function or procedure 'InstallAutoOSUpdater' not found
« Reply #1 on: September 06, 2014, 10:19:54 AM »
Hi Randem,


I am having an issue with the os auto updater.

I get the below error in inno setup compiler 5.5.5. pointing to the below source line.

Compiler Error Required function or procedure 'InstallAutoOSUpdater' not found

Source: D:\GPRMMain\GPRM\Scripts\Output\Support\VB_VC_DCOM_MDAC_JET_AutoSetup.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; AfterInstall: InstallAutoOSUpdater('{tmp}\VB_VC_DCOM_MDAC_JET_AutoSetup.exe','/NORESTART /VERYSILENT'); Tasks: AutoOSUpdater;


Script below

Please help.


[Tasks]
Name: Desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}
Name: AutoOSUpdater; Description: Install Database Support Updater; GroupDescription: Database Support:
Name: ScriptingRuntime; Description: Install Microsoft's Scripting Runtime; GroupDescription: Install Scripting Runtime:

[Files]
Source: D:\GPRMMain\GPRM\Scripts\Output\Support\VB_VC_DCOM_MDAC_JET_AutoSetup.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; AfterInstall: InstallAutoOSUpdater('{tmp}\VB_VC_DCOM_MDAC_JET_AutoSetup.exe','/NORESTART /VERYSILENT'); Tasks: AutoOSUpdater;
Source: C:\Users\Rod\Desktop\GPRM\*.*; DestDir: {app}\GPRM\; Flags:  createallsubdirs ignoreversion recursesubdirs
Source: C:\Users\Rod\Desktop\Installer_Stuff\*.*; DestDir: {app}\Installer_Stuff\; Flags:
Source: D:\GPRMMain\GPRM\Scripts\Output\Support\*.*; DestDir: {app}\Scripts\Output\Support\; Flags:
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 11\VB 5 Redist Files\stdole2.tlb; DestDir: {sys}; Flags:  regtypelib restartreplace uninsneveruninstall;
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 11\VB 6 Redist Files\MSSTDFMT.DLL; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 11\VB 6 Redist Files\quartz.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 11\VB 6 Redist Files\dx7vb.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 11\VB 6 Redist Files\scripten.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; MinVersion: 0,5.0; OnlyBelowVersion: 0,5.02; Tasks: ScriptingRuntime
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 11\VB 6 Redist Files\COMDLG32.OCX; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 11\VB 6 Redist Files\MSCHRT20.OCX; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 11\VB 6 Redist Files\MSFLXGRD.OCX; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 11\VB 6 Redist Files\MCI32.OCX; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 11\VB 6 Redist Files\COMCTL32.OCX; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
Source: D:\GPRMMain\GPRM\GPRM_1_0_2.exe; DestDir: {app}; Flags:  ignoreversion restartreplace;
Source: C:\Users\Rod\Desktop\Installer_Stuff\GPRM.ico; DestDir: {app}; Flags:  ignoreversion;
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 11\VB 5 Redist Files\OLEAUT32.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 11\VB 5 Redist Files\COMCAT.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 11\VB 6 Redist Files\MSVBVM60.DLL; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
; Font Entries - Start
Source: C:\Windows\Fonts\calibri.ttf; DestDir: {fonts}; FontInstall: Calibri (TrueType); Flags: onlyifdoesntexist uninsneveruninstall nocompression
Source: C:\Windows\Fonts\calibrii.ttf; DestDir: {fonts}; FontInstall: Calibri Italic (TrueType); Flags: onlyifdoesntexist uninsneveruninstall nocompression
Source: C:\Windows\Fonts\calibrib.ttf; DestDir: {fonts}; FontInstall: Calibri Bold (TrueType); Flags: onlyifdoesntexist uninsneveruninstall nocompression
Source: C:\Windows\Fonts\calibriz.ttf; DestDir: {fonts}; FontInstall: Calibri Bold Italic (TrueType); Flags: onlyifdoesntexist uninsneveruninstall nocompression
Source: C:\Windows\Fonts\tahoma.ttf; DestDir: {fonts}; FontInstall: Tahoma (TrueType); Flags: onlyifdoesntexist uninsneveruninstall nocompression
Source: C:\Windows\Fonts\tahomabd.ttf; DestDir: {fonts}; FontInstall: Tahoma Bold (TrueType); Flags: onlyifdoesntexist uninsneveruninstall nocompression
; Font Entries - End
;Source: "{src}\Support\VB_DCOM_MDAC_JET_AutoSetup.exe"; DestDir: "{tmp}"; MinVersion: 4.1,4.0; Flags: nocompression ignoreversion deleteafterinstall

[INI]
Filename: {app}\GPRM_1_0_2.url; Section: InternetShortcut; Key: URL; String: http://www.gprm.co.uk/

[Icons]
Name: {group}\GPRM Beta; Filename : {app}\GPRM_1_0_2.exe; WorkingDir: {app}; IconFilename: {app}\GPRM.ico;
Name: {group}\{cm:ProgramOnTheWeb, GPRM Beta}; Filename: {app}\GPRM_1_0_2.url; IconFilename: {app}\GPRM.ico;
Name: {group}\{cm:UninstallProgram, GPRM Beta}; Filename: {uninstallexe};
Name: {commondesktop}\GPRM Beta; Filename: {app}\GPRM_1_0_2.exe; Tasks: Desktopicon ; WorkingDir: {app}; IconFilename: {app}\GPRM.ico;

[Run]
Filename: {tmp}\scripten.exe; Parameters: /quiet /passive; MinVersion: 0,5.0; OnlyBelowVersion: 0,5.02; WorkingDir: {tmp}; Flags: skipifdoesntexist runascurrentuser; Tasks: ScriptingRuntime; StatusMsg: Installing Scripting Runtime;
Filename: "{src}\VB_DCOM_MDAC_JET_AutoSetup.exe"; Parameters: /NORESTART /VERYSILENT WorkingDir: {tmp}; MinVersion: 4.1,4.0
Filename: {app}\GPRM_1_0_2.exe; Description: {cm:LaunchProgram, GPRM Beta}; Flags: nowait postinstall skipifsilent runascurrentuser; WorkingDir: {app}

[UninstallDelete]
Type: files; Name: {app}\GPRM_1_0_2.url
Type: dirifempty; Name: {app}

[Registry]