Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 812619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:13:50+00:00 2026-05-15T01:13:50+00:00

I’m creating an install package using InnoSetup and installing SQL Server 2005 Express. Here’s

  • 0

I’m creating an install package using InnoSetup and installing SQL Server 2005 Express. Here’s the code below that appears in my RUN section:

Filename: "{app}\SQL Server 2005 Express\SQLEXPR.exe" ; Parameters: "-q /norebootchk /qn reboot=ReallySuppress addlocal=all INSTANCENAME=(LOCAL) SCCCHECKLEVEL=IncompatibleComponents:1;MDAC25Version:0 ERRORREPORTING=2 SQLAUTOSTART=1 SAPWD=passwordhere SECURITYMODE=SQL"; WorkingDir: {app}\SQL Server 2005 Express; StatusMsg: Installing Microsoft SQL Server 2005 Express... Please Wait...;Check:SQLVerifyInstall

What I’m trying to accomplish is have the SQL Server package install but only have the instance name itself reference the name of the machine name and nothing more. What I’m receiving instead is a named instance instead of local such as MachineName\SQLEXPRESS which is not what I want to receive.

I need a local instance instead of a named instance due to the way my code is written to be able to install and talk with the databases in question. I would change it, trust me, were it not the fact that this install package is a replacement to a previous package that used the MSDE installer. I have to be able to support both through code. Any suggestions are welcome but a clear and concise method to get the installer to quietly install using only the machine name is my main goal. Thanks for the help and support!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T01:13:50+00:00Added an answer on May 15, 2026 at 1:13 am

    Here’s a sample for setting the InstanceName in code:

        ; Script generated by the Inno Setup Script Wizard.
        ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
    
        [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={{4D044938-6185-4729-8EB9-33CFA5D51993}
        AppName=My Program
        AppVerName=My Program 1.5
        AppPublisher=My Company, Inc.
        AppPublisherURL=http://www.example.com/
        AppSupportURL=http://www.example.com/
        AppUpdatesURL=http://www.example.com/
        DefaultDirName={pf}\My Program
        DefaultGroupName=My Program
        OutputBaseFilename = setup
        Compression = lzma
        SolidCompression = yes
    
        [Languages]
        Name: "english"; MessagesFile: "compiler:Default.isl"
    
        [Tasks]
        Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
    
        [Files]
        Source: "SQLEXPR.exe"; DestDir: "{app}"; Flags: ignoreversion
        ; NOTE: Don't use "Flags: ignoreversion" on any shared system files
    
        [Run]
        Filename: "{app}\SQLEXPR.exe" ; Parameters: "INSTANCENAME={code:MyInstanceName|'SQLEXPRESS'}";
    
    
        [Code]
        function MyInstanceName(Param: String): String;
        begin
          //This sets the value to \MSSQLSERVER.
          Result := ExpandConstant('{computername}') + '\MSSQLSERVER';
        end;
    

    However, from what I’ve seen on the net the instance name should be MSSQLSERVER if you want it to be the default instance on the machine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 394k
  • Answers 394k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer With a UIScrollView it is not enough just to place… May 15, 2026 at 2:23 am
  • Editorial Team
    Editorial Team added an answer ACE (Access Database Engine) is just the successor to Jet,… May 15, 2026 at 2:23 am
  • Editorial Team
    Editorial Team added an answer The .NET 3.0 System.Speech.Recognition namespace has very elegant .NET wrapper… May 15, 2026 at 2:23 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.