Menu
  • HOME
  • TAGS

I have duplicated InitializeSetup in INNO SETUP how can i solve it?

Tag: installation,inno-setup,pascal

Hello i am trying to make an installer using INNO SETUP, when i started to use ISSkin Code Inno setup send me an error mesage DUPLICATE IDENTIFIER 'INITIALIZESETUP' I would like to know what i have to change to my code to make it work.

I was reading at internet and i found a program called IS Script Joiner, i used it but it doesnt work.

Here is my Inno Code:

; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Myprogram"
#define MyAppVersion "2.8"
#define MyAppPublisher "Myprogram"
#define MyAppURL "http://www.example.com/"
#define MyAppExeName "program.exe"
#define ISSI_WizardSmallBitmapImage "wpBanner.bmp"
#define ISSI_WizardSmallBitmapImage_x 495
#define ISSI_WizardSmallBitmapImage_Align
#define ISSI_IncludePath "C:\ISSI"
#include ISSI_IncludePath+"\_issi.isi"

[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{2A8CE1DB-2FDB-4CAA-8A2C-0FE3DB8A500D}
AppName=Myprogram
AppVersion=2.8
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher=Myprogram
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\Myprogram
DefaultGroupName={#MyAppName}
LicenseFile=C:\Libraries\EULA.rtf
OutputDir=C:\Users\Hans Lopez\INNO SETUPS
OutputBaseFilename=programoutput
SetupIconFile=C:\Libraries\Icon.ico
Compression=lzma/Max
SolidCompression=true
WizardImageFile=C:\InstallMlockPackage\Setupbanner.bmp
AppVerName=2.8
DirExistsWarning=yes
VersionInfoProductName=Myprogram
VersionInfoProductVersion=2.8



[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"

[Dirs]
Name: "{app}" ; Permissions: everyone-full
Name: {sd}\myprogramfolder; Permissions: everyone-full; 


[Code]
//===================================================================Verify if                     Installed===============================================================================
function GetUninstallString: string;
var
sUnInstPath: string;
sUnInstallString: String;
begin
Result := '';

   sUnInstallString := '';
   if not RegQueryStringValue(HKLM, sUnInstPath, 'UninstallString', sUnInstallString) then
    RegQueryStringValue(HKCU, sUnInstPath, 'UninstallString', sUnInstallString);
   Result := sUnInstallString;
   end;

   function IsUpgrade: Boolean;
begin
Result := (GetUninstallString() <> '');
end;

function InitializeSetup: Boolean;
var
  V: Integer;
  iResultCode: Integer;
  sUnInstallString: string;
begin
  Result := True; // in case when no previous version is found
  if                    RegValueExists(HKEY_LOCAL_MACHINE,'Software\Microsoft\Windows\CurrentVersion\Uninstall\ {2A8CE1DB-2FDB-4CAA-8A2C-0FE2DB8A500D}_is1', 'UninstallString') then  //Your App GUID/ID
  begin
    V := MsgBox(ExpandConstant('Myprogram is Already installed, Do you want to         continue?'), mbInformation, MB_YESNO); //Custom Message if App installed
    if V = IDYES then
    begin
      sUnInstallString := GetUninstallString();
      sUnInstallString :=  RemoveQuotes(sUnInstallString);
      Exec(ExpandConstant(sUnInstallString), '', '', SW_SHOW, ewWaitUntilTerminated,     iResultCode);
      Result := True; //if you want to proceed after uninstall
                //Exit; //if you want to quit after uninstall
    end
    else
      Result := False; //when older version present and not uninstalled
  end;
end;

//====================================================================Unistall and Delete Everything==================================================================

procedure DeleteBitmaps(ADirName: string);
var
  FindRec: TFindRec;
begin
  if FindFirst(ADirName + '\*.*', FindRec) then begin
    try
      repeat
        if FindRec.Attributes and FILE_ATTRIBUTE_DIRECTORY <> 0 then begin
          if (FindRec.Name <> '.') and (FindRec.Name <> '..') then begin
            DeleteBitmaps(ADirName + '\' + FindRec.Name);
            RemoveDir(ADirName + '\' + FindRec.Name);
          end;
        end else if Pos('.bmp', AnsiLowerCase(FindRec.Name)) > 0 then
          DeleteFile(ADirName + '\' + FindRec.Name);
      until not FindNext(FindRec);
    finally
      FindClose(FindRec);
    end;
  end;
end;

procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
begin
  if CurUninstallStep = usUninstall then begin
    if MsgBox('Do you want to delete all data files?', mbConfirmation,
        MB_YESNO) = IDYES 
    then begin
      DeleteBitmaps(ExpandConstant('{app}'));
    end;
  end;
end;


//===========================================================ISSKinCODE=============================================================================



// Importing LoadSkin API from ISSkin.DLL
procedure LoadSkin(lpszPath: String; lpszIniFileName: String);
external '[email protected]:isskin.dll stdcall';

// Importing UnloadSkin API from ISSkin.DLL
procedure UnloadSkin();
external '[email protected]:isskin.dll stdcall';

// Importing ShowWindow Windows API from User32.DLL
function ShowWindow(hWnd: Integer; uType: Integer): Integer;
external '[email protected] stdcall';


function InitializeSetup(): Boolean;
begin
  ExtractTemporaryFile('iTunesB.msstyles');
  LoadSkin(ExpandConstant('{tmp}\iTunesB.msstyles'), '');
  Result := True;
end;

procedure DeinitializeSetup();
begin
  // Hide Window before unloading skin so user does not get
  // a glimpse of an unskinned window before it is closed.
  ShowWindow(StrToInt(ExpandConstant('{wizardhwnd}')), 0);
  UnloadSkin();
end;



/////////////////////////////////////////////////////////////ENDCODE/////////////////////////////////////////////////////////////////////////////////////////////////




[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "                  {cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "    {cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1

[Files]
Source: "C:\My program\program.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Program Files\C:\My program\*"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\programfolder\*"; DestDir: "{sd}\Myprogramfolder"; Flags: ignoreversion             recursesubdirs createallsubdirs
Source: ISSkin.dll; DestDir: {app}; Flags: dontcopy
Source: "C:\InstallMlockPackage\ISSkin\iTunesB\iTunesB\iTunesB.msstyles"; DestDir: "    {tmp}"; Flags: dontcopy



; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}";  IconFilename: "    {app}\icon.ico" ;
Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}";  IconFilename: "{app}\icon.ico" ;
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}";      IconFilename: "{app}\icon.ico" ;
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks:     desktopicon;  IconFilename: "{app}\icon.ico" ;
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon;  IconFilename: "{app}\icon.ico" ;
Name: {group}\Uninstall =ISSkin; Filename: {app}\unins000.exe
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,         {#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

Thank You very Much for Your Help

Best How To :

Relocate the two calls to the ISSkin DLL from where they are now (above the second InitializeSetup) to just above the first InitializeSetup declaration.

// Importing LoadSkin API from ISSkin.DLL
procedure LoadSkin(lpszPath: String; lpszIniFileName: String);
external '[email protected]:isskin.dll stdcall';

// Importing UnloadSkin API from ISSkin.DLL
procedure UnloadSkin();
external '[email protected]:isskin.dll stdcall';

Change the first InitializeSetup code to include the calls to extract and load the skin (from the second InitializeSetup).

function InitializeSetup: Boolean;
var
  V: Integer;
  iResultCode: Integer;
  sUnInstallString: string;
begin
  // These two lines moved from second InitializeSetup declaration before it
  // was removed.
  ExtractTemporaryFile('iTunesB.msstyles');
  LoadSkin(ExpandConstant('{tmp}\iTunesB.msstyles'), '');
  Result := True; // in case when no previous version is found
  if                    RegValueExists(HKEY_LOCAL_MACHINE,'Software\Microsoft\Windows\CurrentVersion\Uninstall\ {2A8CE1DB-2FDB-4CAA-8A2C-0FE2DB8A500D}_is1', 'UninstallString') then  //Your App GUID/ID
  begin
    V := MsgBox(ExpandConstant('Myprogram is Already installed, Do you want to         continue?'), mbInformation, MB_YESNO); //Custom Message if App installed
    if V = IDYES then
    begin
      sUnInstallString := GetUninstallString();
      sUnInstallString :=  RemoveQuotes(sUnInstallString);
      Exec(ExpandConstant(sUnInstallString), '', '', SW_SHOW, ewWaitUntilTerminated,     iResultCode);
      Result := True; //if you want to proceed after uninstall
                //Exit; //if you want to quit after uninstall
    end
    else
      Result := False; //when older version present and not uninstalled
  end;
end;

Remove the second InitializeSetup code entirely.

Scale radio button list with font size

inno-setup,pascal

Checkboxes and Radio buttons created on runtime in Inno Setup do not scale their height automatically with DPI/font size. So you have to scale them programmatically. ... RadioButton.Left := WizardForm.TypesCombo.Left; RadioButton.Height := ScaleY(RadioButton.Height); RadioButton.Top := WizardForm.TypesCombo.Top + I * RadioButton.Height; ... Though note that using a non-default font-size for your...

Oracle cilent and Perl installation on Centos

oracle,perl,oracle11g,installation

I compile DBD::Oracle on AIX, CentOS, RedHat and Solaris all the time. I recommend that you make a script (especially if you are using sudo to compile these things). Here's the script I use to set environment variables (some are extra and some are including for testing) and make the...

Error creating an eclipse library project for v7 appcompat

android,installation,appcompat

I think the problem is that in your Android SDK, you haven't downloaded the API Level 19. Two solutions as follows: Open your sdk manager, install API Level 19 version platform. Open your sdk and take a look what you have installed (ex. you have 22) in your SDK, and...

Registry aren't fully deleting when uninstalling

registry,inno-setup

Your code, as it is, automatically deletes the HKLM\SOFTWARE\EA Games\Need for Speed Most Wanted-2012 is deleted. The HKLM\SOFTWARE\EA Games is not deleted. If you want to delete even the HKLM\SOFTWARE\EA Games, you have to add an explicit code for it: Root: HKLM; SubKey: SOFTWARE\EA Games; Flags: uninsdeletekeyifempty (This should be...

PyInstaller output artifacts in different folders

python,python-2.7,installation,pyinstaller

Very simple solution :) echo ******************** Starting buiding x32... ****************** c:\Anaconda32\Scripts\pyinstaller.exe --distpath=./dist/win32 --workpath=./build/win32 src/app.spec echo ******************** Application was built ****************** echo ******************** Starting buiding x64... ****************** pyinstaller --distpath=./dist/win64 --workpath=./build/win64 src/app.spec echo ******************** Application was built ****************** ...

InstallShield exclude files based on language selection

localization,installation,installshield,installshield-2012

I use the following approach for our multilanguage setups: Switch to the "Organization \ Setup Design" panel. You should see that each of your components has the property "Condition". If you want to include a file / component only for a specific language you should create a a component for...

How to show actual application size in control panel?

inno-setup

To modify the setup size that can be seen in the Add/Remove Programs control panel applet you can change the value of the UninstallDisplaySize directive. To set it to a certain (single) file size at the compilation time you can use the preprocessor's FileSize function. For example: [Setup] AppName=My Program...

Phantom Mercurial, How to remove?

ubuntu,installation,mercurial,tortoisehg

You can find out where in your path an application exists using the type command like this (when using bash): [email protected]:~$ type -a hg hg is /usr/local/bin/hg It's possible it was installed as a python package in which case the command would be: pip uninstall mercurial but it might just...

Get Offline Installation ID (Windows 8 or similar)

c#,windows,installation

This is possible by querying the WMI (Windows Management Instrumentation)'s Win32_WindowsProductActivation (XP and below) or SoftwareLicensingProduct (Vista or higher) class: Requires these namespaces to be declared: System System.Collections.Generic System.Management System.Text Declare those namespaces at the top of your codefile with using, as per se: using System; using System.Collections.Generic; using System.Management;...

SOLVED: Installing lxml, libxml2, libxslt on Windows 8.1

python,windows,module,installation,lxml

I was able to fix the installation with the following steps. I hope others find this helpful. My installation of "pip" was working fine before the problem. I went to the Windows command line and made sure that "wheel" was installed. C:\Python34>python -m pip install wheel Requirement already satisfied (use...

Is NSIS 3.0b1 stable for production usage?

installation,installer,nsis

NSIS 3 is basically NSIS 2.46 merged with the Unicode fork + additional bugfixes. Most of the changes are in the compiler and not in the generated installers. Development is still active but don't expect a new release until after Win10 RTM......

Updating Ubuntu 11.04 to 12.04 preferrably through command line

linux,command-line,installation,command-line-arguments,updates

You can download the hardware specific package of ubuntu 12.04 directly http://releases.ubuntu.com/12.04/ or http://howtoubuntu.org/how-to-install-ubuntu-12-04-precise-pangolin There is no such option in the standard installation medium....

Inno Setup: Display desktop shortcut on Finish Page

inno-setup

Not directly. You have to basically implement your own set of checkboxes, and handle them on your own. I'm doing the same in my installer. See my .iss. The Numbers in the list below point to respective lines in my code. In InitializeWizard create a set of checkboxes on WizardForm.FinishedPage....

Not able to update ADT

android,eclipse,installation,adt

None of the answers provided related to this issue solved my problem. Eventually, I downloaded latest Android Studio and installed it. So far, extremely happy with its performance and features. I would recommend to install Android Studio.

How do I install homebrew on mac?

ruby,osx,installation,homebrew,command-prompt

Do you have XCode and Command Line Tools installed? If so, the above script should have done it. Go to the terminal and type brew doctor This will tell you the status of your install....

How to run a website that uses npm to start the server

node.js,installation,website,server,setup-deployment

Signup for the free Heroku account and upgrade if needed. https://www.heroku.com/beta-pricing Here is their deploy instructions for node.js. https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction Another host with a free option is OpenShift....

Inno setup: detect installation based on product code

inno-setup

There is the MsiQueryProductState function for this. Here is its import with a helper function for your task: [Code] #IFDEF UNICODE #DEFINE AW "W" #ELSE #DEFINE AW "A" #ENDIF type INSTALLSTATE = Longint; const INSTALLSTATE_DEFAULT = 5; function MsiQueryProductState(szProduct: string): INSTALLSTATE; external 'MsiQueryProductState{#AW}@msi.dll stdcall'; function IsProductInstalled(const ProductID: string): Boolean; begin...

How to add several ports to FirewallException in Wix?

installation,wix,windows-installer,installer,custom-action

Summary In WIX 3.9 (and earlier), the FirewallExtension only supports a single integer for the Port attribute. The Port attribute supports Formatted values, but the result of the formatting must still be a single integer. In your case [PORTS] must evaluate to a single integer. If the Port attribute is...

Is there a list of other values besides “ ”, and “-” that are invalid for components in Inno Setup?

inno-setup

The rules for the Name parameter values of the [Tasks] and [Components] sections are: the first char must be an alpha char from range A-Z (case does not matter), or an underscore what follows must be an alpha char from range A-Z (case does not matter), an underscore, a number,...

Inno Setup CreateInputDirPage but don't check for folder existence

inno-setup,pascalscript

You cannot disable the validation. You can workaround that by adding only three inputs using the .Add. And add the fourth input manually, taking control of it. var DataDirPage: TInputDirWizardPage; CustomDirEdit: TEdit; procedure InitializeWizard; var Index: Integer; Offset: Integer; PromptLabel: TNewStaticText; UltimateEdit: TEdit; PenultimateEdit: TEdit; UltimateLabel: TNewStaticText; begin DataDirPage :=...

visual studio 2013 update 2 taking to long to configur

visual-studio-2013,installation

If installation process is stuck then wait for long time. Some times it happens that it takes too long. Or just cancel the installation process and re-start. There are exactly no solution to this. There is no such problem that we can solve while this installation is going on. Advice...

Produce both versions x32 and x64 under PyInstaller

python,python-2.7,installation,pyside,pyinstaller

No, that won't work. What you should do is install the 32 bit python as well and create the "other" installer starting the creation process with that. It is possible to have both the 32 and the 64 bit version of the same Python major.minor version on the same machine....

Innosetup task Page edit

checkbox,task,inno-setup

THIS IS THE ANSWER FOR MY QUESTION THANKS AND CREDIT GOES TO "TLama" Script generated by the Inno Setup Script Wizard. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! #define MyAppName "My Program" #define MyAppVersion "1.5" #define MyAppPublisher "My Company, Inc." #define MyAppURL "http://www.example.com/" #define MyAppExeName...

Python: Trouble with dill installation

python,python-3.x,build,installation,dill

I'm the dill author. Are you running in a directory that you have the dill source unzipped to? If so, you'll get this error. If you change to another directory, it should work if you've installed dill correctly (with pip or otherwise). It should work with pip, see this closed...

Not able to format namenode in hadoop-2.6.0 multi node installation

ubuntu,hadoop,installation,yarn

Add these lines in .bashrc: export HADOOP_HOME=/path/to/your/hadoop/installation export PATH=$PATH:$HADOOP_HOME/bin As for, I don't see any folder "bin" inside Hadoop installation Check whether you have binary distribution or source. Download hadoop-2.6.0.tar.gz from Hadoop Distributions, in case you have source distribution....

cuda 7.0 installation compatible hardware not found

windows,cuda,installation

You can't use CUDA 7 with a GeForce 8400 GS. That is a compute capability 1.1 device and support for that was dropped in CUDA 7. Install CUDA 6.5 instead. You can keep your 341.44 driver that you already have installed. If you use CUDA 6.5, be sure to select...

Custom setup on operating system and architecture

inno-setup,pascalscript

Use GetWindowsVersion and IsWin64 support functions: if ((GetWindowsVersion >= $06000000) {Vista} and (not IsWin64)) or (GetWindowsVersion >= $06010000) {7} then begin // Install end; ...

Theano installation, nvcc not in the path

python,installation,theano,nvcc

Theano is designed to work (almost) identically on both CPU and GPU. You don't need a GPU to use Theano and if you don't have a Nvidia GPU then you shouldn't try installing any GPU-specific stuff at all.

Error while running a basic wordcount program on Eclipse

java,eclipse,hadoop,installation

That error doesn't seem to be related to hadoop. I couldn't find any reference to a SWT Table or column in that page also. You could start a normal java application to see if everything it's working ok, and after that run wordcount ($HADOOP_HOME/share/hadoop/mapreduce/hadoop-mapreduce-examples) from a terminal, to test your...

Install windows 7 software on windows 8

windows-8,installation,inno-setup

Try using the Windows 7 compatibility mode. Right click on the executable. Select properties. Switch to the compatibility tab. Enable the compatibility mode. Set the compatibility mode to Windows 7. And apply settings. Sorry if this is an insult to your intelligence. I wanted to practice the Windows Steps recorder....

Use Heroku binary instead of gem

ruby-on-rails,ruby,linux,heroku,installation

You can create a alias for heroku command put below code in .bash_profile file alias heroku="/usr/bin/heroku" .bash_profile so that it's loaded each time you open a terminal. note:- You will have to reload your current terminal to have it working simply use $. .bash_profile ...

Different ways of hadoop installation

hadoop,installation

Hadoop runs on Unix and on Windows. Linux is the only supported production platform, but other flavors of Unix (including Mac OS X) can be used to run Hadoop for development. Windows is only supported as a development platform, and additionally requires Cygwin to run. If you have Linux OS,...

install msi with a product code through msiexec

installation,windows-installer,installer,msiexec

ProductCode is a private property and isn't being passed to the installer session. I don't see why you'd need it anyways as it's in the MSI that you are installing. You can uninstall using a ProductCode (by substituting it for the path to the MSI not by passing it as...

Installing Ghost.py

python,installation,python-3.4,ghost.py

You need to literally call the install for Ghost.py since the module isn't named ghost through PyPi. Python2: pip install Ghost.py Python3: python3.4 -m ensurepip pip3.4 install Ghost.py Note: You may need to use sudo to install pip. Then you will be able to use Ghost: from ghost import Ghost...

Conditional DisableProgramGroupPage in Inno Setup

inno-setup,pascalscript

(Elaborating on @TLama's comment) The DisableProgramGroupPage does not support "boolean expression": [Setup]: DisableProgramGroupPage Valid values: auto, yes, or no Contrary to Uninstallable: [Setup]: Uninstallable Valid values: yes or no, or a boolean expression You can use ShouldSkipPage event function instead: function ShouldSkipPage(PageID: Integer): Boolean; begin Result := False; if PageID...

Create shortcut based on result of Pascal function

inno-setup

The [Icons] section entry should look like: [Icons] Name: "{userdesktop}\Myprog"; Filename: "{code:MyFunctionThatReturnsPath}\Myprog.exe" And the corresponding function is: [Code] function MyFunctionThatReturnsPath(Param: string): string; begin Result := 'C:\path'; end; The function must take a string argument, even if you do not actually make use of it. See Pascal Scripting: Scripted Constants: The...

SQL create column with select in select and subtract this with another column, to create a new column

sql,sql-server,installation,isnull

If I understood well I think this is what you're looking for: SELECT,membernummer, name, c.ammount, c.terms, payed_sum, amount_sum, amount_sum - payed_sum balance from ( SELECT membernummer, name, c.ammount, c.terms, (select SUM(coalese(amount, 0)) from payments p where m.member_ID = p.member_ID and p.year = c.year) AS amount_sum, (select SUM(colasce(payed, 0)) from payments...

Inno Setup URLDownloadToCacheFile (solved)

inno-setup

The original problem was that you were passing nil to a parameter of type Variant. Null value for the Variant type is NULL in Pascal Script. But, your prototype needs to be changed. You need to use Unicode data types when you are using Unicode variant of a function, so...

Using python with a specific version of OpenCV

python,opencv,installation,virtualenv,opencv3.0

Compiling OpenCV 3.0 will create its own cv2.so file containing your new module, typically in your opencv3-0-0-beta/build directory. You need to add the OpenCV 3.0 build directory to PYTHONPATH instead of the one created by apt-get.

Installing pylab on Mac OSX

python,osx,matplotlib,installation,install

It looks like you ran the instructions to (re)install pip, but you did not yet run the instruction that uses pip to install matplotlib, i.e.: pip install matplotlib ...

How to completely disable specific component in Inno Setup from code section?

inno-setup

Here is another, still hacky way to do what you want. I've used a different concept here. Essentially, it's about preparing an array of indices of components that should be disabled and unchecked (which I'm callling ghosted here) and calling UpdateGhostItems(False) which unchecks and disables the items of the indices...

InnoSetup - while compiling sign tool failed with exit code 0x1

windows-7,windows-8.1,inno-setup

Just remove the extension from rarfile, make it to just "chrome64", with a batch script rename it while setup the files. In innosetup [Run] Filename: "{app}\rename.bat" In rename.bat: @ECHO OFF ren Chrome64 Chrome64.rar del rename.bat I'm just removed the extension from Chrome.exe, and with batch rename it back to exe...

spark-1.4 with zeppelin installation

installation,apache-spark,apache-zeppelin

It looks like it cannot connect to Connect to raw.github.com:443 I can think of two options: you have a local maven repo that you can use as an artifact proxy (e.g. Nexus) and you will have to setup a mirror in ~/.m2/settings.xml You might beed to configure access through proxy...

how to install packages from pypi to anaconda?

python,installation,packages,anaconda,pypi

1) Find the installation directory and look in the packages directory 2) From the Anaconda command line, conda install <pkg name> or if its in a tarball conda install <tar-file-name>.tar Anaconda FAQ...

Converting Inno Setup WizardForm.Color to RGB

inno-setup,tcolor

When the first byte is $FF, the last byte is an index in a system color palette. You can get RGB of the system color using GetSysColor function. function GetSysColor(nIndex: Integer): DWORD; external '[email protected] stdcall'; function ColorToRGB(Color: TColor): Longint; begin if Color < 0 then Result := GetSysColor(Color and $000000FF)...

Apache won't serve pages on my Raspberry Pi

php,apache,configuration,installation,raspberry-pi

This was an easy 'fix'. The new PHP's root folder is ~/var/www/html/. All is working fine. Good luck future solution seekers ;)

Is it possible to add HTML form in Inno setup?

inno-setup

There's no native support for include web page to Inno Setup installer. Neither I'm aware of any 3rd party extension that would support it. Instead, you can code a custom installer page using CreateInputQueryPage function to query user registration details and send them to your web site. Simple example: [Code]...

How to create new About button in inno setup?

inno-setup,pascalscript

Here is a simplified, inlined version of the minimum code necessary to do what you've asked for: [Setup] AppName=My Program AppVersion=1.5 DefaultDirName={pf}\My Program [Code] procedure AboutButtonOnClick(Sender: TObject); begin MsgBox('This is the about message!', mbInformation, mb_Ok); end; procedure InitializeWizard; var AboutButton: TNewButton; begin // create an instance of the button and...

How to disable “browse” button on defaultDirectory wizard page

inno-setup

You can disable the directory edit box with the browse button this way: [Setup] AppName=My Program AppVersion=1.5 DefaultDirName={pf}\My Program [Code] procedure InitializeWizard; begin WizardForm.DirEdit.Enabled := False; WizardForm.DirBrowseButton.Enabled := False; end; ...