How to make a Team V.R CE installer?

Discussion in 'Software' started by omultitech, Aug 9, 2020.

  1. pratyahara

    pratyahara Guest

    It works great. I've tried it on a H2O setup from 2005. Example 3.png
     
  2. demberto

    demberto Rock Star

    Joined:
    Nov 27, 2018
    Messages:
    933
    Likes Received:
    328
    To use the R2RINNO.DLL helper functions, you have to first include it in the [Files] section with the "dontcopy" flag and its DestDir={tmp}
    After that in the code section you have to declare the function prototype like this:
    Code:
    function GetVST2Dir64(lpszDirPath: string): Integer;
    extern 'GetDirVST2x64@files:R2RINNO.DLL stdcall setuponly';
    This makes a DLL function available to the Code section. The setup then figures out where to find it and how to call it in the next line. The stdcall is a low level detail. I can explain it to you if you want. Leave it as it is for any other functions you use from R2RINNO.DLL. It is different for different DLLs, you can find it from IDA etc.
    Now you need this value in a Select Plugin Install Location page. You must make a custom page for that like this:
    Code:
    ; Declare the variables
    var
      lpszBuf: String,
      VST2DirPage: TDirInputWizardPage;
    
    ; Here you declare your page
    procedure InitializeWizard;
    begin
      ; Create Page code. Refer Inno Setup docs
      SetLength(lpszBuf, 260);
      GetVST2Dir64(lpszBuf);
      SetLength(lpszBuf, Pos(#0, lpszBuf) - 1);
      ; The string can be empty, this function isn't failsafe
      VST2DirPage.Values[0] := lpszBuf;
      ; Thus the select dir page gets a value
    end;
    
    Now this value i.e. VST2DirPage.Values[0] can be retrieved into the files section. Refer Inno's docs (scripted constants).
     
  3. scrappy

    scrappy Platinum Record

    Joined:
    Mar 15, 2016
    Messages:
    358
    Likes Received:
    247
    Location:
    bowels of the skullery at the court of king boris
    now I'm actually having trouble with me pants.
    good thread though...
    I mean this one, not the one's in me pants.
    :woot:
     
  4. poly

    poly Platinum Record

    Joined:
    Sep 29, 2016
    Messages:
    287
    Likes Received:
    173
    Location:
    Hä?
    Tried to unpack "ircamLAB TS v2.1.1 CE". Changed 8.1.5 to 6.0.2 and InnoExtractor can open it then but if i try to unpack it ask to a Decrypt Installer password. Please V.R. stop reading this forum! NOW!!! :snuffy::excl:
     
  5. r4e

    r4e Audiosexual

    Joined:
    Sep 6, 2014
    Messages:
    869
    Likes Received:
    1,247
    Ye, that's wat VR did before. They encrypted their installers.
    Only thing you can unpack here is the Inno script stub and some files used by the installer itself.
    Your only option is to install it into a Sandbox.
     
  6. Talula

    Talula Rock Star

    Joined:
    Apr 22, 2018
    Messages:
    1,153
    Likes Received:
    349
    you can unpack original setup from official site. this is install_script.iss after unpacking:
    Code:
    ;InnoSetupVersion=6.0.0 (Unicode)
    
    
    [Setup]
    AppName=TS
    AppId={{C7085E07-FE1D-4E76-BF02-B6CBDC58E3D5}
    AppVersion=2.1.1
    AppPublisher=Ircam Lab
    AppPublisherURL=www.ircamlab.com
    AppSupportURL=www.ircamlab.com
    AppUpdatesURL=www.ircamlab.com
    DefaultDirName={pf64}\Ircam Lab TS
    OutputBaseFilename=TS_v2.1.1-install
    Compression=lzma
    DisableDirPage=auto
    DisableProgramGroupPage=yes
    WizardImageFile=embedded\WizardImage0.bmp
    WizardSmallImageFile=embedded\WizardSmallImage0.bmp
    
    [Files]
    Source: "{app}\TS.exe"; DestDir: "{app}"; MinVersion: 0.0,6.0; Flags: ignoreversion
    Source: "{app}\svpk_float.dll"; DestDir: "{app}"; MinVersion: 0.0,6.0; Flags: ignoreversion
    Source: "{app}\TS2Manual.pdf"; DestDir: "{app}"; MinVersion: 0.0,6.0; Flags: ignoreversion
    Source: "{app}\Credits.txt"; DestDir: "{app}"; MinVersion: 0.0,6.0;
    
    [Run]
    Filename: "{app}\TS.exe"; Description: "{cm:LaunchProgram,TS}"; MinVersion: 0.0,6.0; Flags: postinstall skipifsilent nowait
    
    [Icons]
    Name: "{autoprograms}\TS"; Filename: "{app}\TS.exe"; MinVersion: 0.0,6.0;
    Name: "{autodesktop}\TS"; Filename: "{app}\TS.exe"; Tasks: desktopicon; MinVersion: 0.0,6.0;
    
    [Tasks]
    Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; MinVersion: 0.0,6.0;
    
    [CustomMessages]
    english.NameAndVersion=%1 version %2
    english.AdditionalIcons=Additional shortcuts:
    english.CreateDesktopIcon=Create a &desktop shortcut
    english.CreateQuickLaunchIcon=Create a &Quick Launch shortcut
    english.ProgramOnTheWeb=%1 on the Web
    english.UninstallProgram=Uninstall %1
    english.LaunchProgram=Launch %1
    english.AssocFileExtension=&Associate %1 with the %2 file extension
    english.AssocingFileExtension=Associating %1 with the %2 file extension...
    english.AutoStartProgramGroupDescription=Startup:
    english.AutoStartProgram=Automatically start %1
    english.AddonHostProgramNotFound=%1 could not be located in the folder you selected.%n%nDo you want to continue anyway?
    
    [Languages]
    ; These files are stubs
    ; To achieve better results after recompilation, use the real language files
    Name: "english"; MessagesFile: "embedded\english.isl";
    

    it's enough if you want to understand what exactly doing setup file during an installation.
    you can replace original exe/dll files with cracked (just copy them from program folder after installationof cracked version) if you want to compile setup file with cracked version (if the installer by Team V.R not working/working with errors for you).

    if want to know how you can make setup file with skins/music/transparency/etc you don't need any special files for installation. in this case all you need - add-ons for inno setup compilers, a little effort to study the syntax of the inno setup script and 2-3 tutorials with examples of using add-ons in the inno setup installation files.
     
  7. pratyahara

    pratyahara Guest

    I have some V.R installers without password. Maybe they should stop reading this forum after all.
    My problem is when I don't want to install the whole package, but need to extract just one or two particular cracked files.
    Maybe Team R2R could crack their Inno Setup installer password?:mates:
     
  8. Talula

    Talula Rock Star

    Joined:
    Apr 22, 2018
    Messages:
    1,153
    Likes Received:
    349
    that's why these installers are protected.
     
  9. pratyahara

    pratyahara Guest

    Against what?
     
  10. Gyro Gearloose

    Gyro Gearloose Audiosexual

    Joined:
    Jul 8, 2019
    Messages:
    4,234
    Likes Received:
    1,849
    Location:
    Germany
  11. poly

    poly Platinum Record

    Joined:
    Sep 29, 2016
    Messages:
    287
    Likes Received:
    173
    Location:
    Hä?
    Now with TBProAudio bundle 2020.8.3 CE InnoSetup 6.0.0 in HeX editor. Can't extract. changed to 6.0.2 and 5.6.1.
    It would be really cool if we can select what we wan't from a bundle! :/
     
  12. pratyahara

    pratyahara Guest

    Yes, they are still playing hard to get. But @r4e will solve it, as a piece of cake.
     
Loading...
Loading...