garyo edited this page Dec 13, 2014 · 1 revision

A quick hack to build Inno setups using iscc (the Inno Setup preprocessor):

import SCons.Builder;
import os;

def runInno(source,target,env,for_signature):
    INNO_DEFINES=" ".join(['/D'+define for define in env['ISCCDEFINES']]);
    (TARGETDIR,TARGETFILE) = os.path.split(str(target[0]));
    return '%(ISCC)s %(SOURCE)s %(DEFINES)s /O "%(TARGETDIR)s" /F"%(TARGETFILE)s" %(ISCCOPTIONS)s ' % \

def generate(env,**kw):
    env['BUILDERS']['InnoInstaller'] = SCons.Builder.Builder( generator=runInno,

def exists(env):
    return env.WhereIs("iscc");

In the SConstruct file:

installer=env.InnoInstaller(target='setup_x64',source='setup_x64.iss',ISCCDEFINES=['APP_NAME="Your App Name"','APP_VERSION="10.4"']);
env.Depends(installer,ALL_THE_DEPENDENCIES); # need to do this manually since there is no dep scanner yet
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.