#define MyAppName "CSV-OpenAsText" #define MyAppVerName "CSV-OpenAsText 2.0" #define MyAppPublisher "Brent Muir" #define MyAppURL "http://www.brentmuir.com/" [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={{14CA6BE5-A3DA-478F-B100-2331A9B1D252} AppName={#MyAppName} AppVerName={#MyAppVerName} AppPublisher={#MyAppPublisher} AppPublisherURL={#MyAppURL} AppSupportURL={#MyAppURL} AppUpdatesURL={#MyAppURL} DefaultDirName={pf}\{#MyAppName} DisableDirPage=true DefaultGroupName={#MyAppName} DisableProgramGroupPage=true OutputBaseFilename={#MyAppName}-Setup OutputDir=. Compression=lzma SolidCompression=true ;WizardImageFile=compiler:wizmodernimage-is.bmp ;WizardImageFile=compiler:WizardImages\Modern\SetupModern24.bmp WizardImageFile=Context-Menu.bmp ;WizardSmallImageFile=compiler:wizmodernsmallimage-is.bmp WizardSmallImageFile=compiler:WizardImages\Modern\Small\SetupModernSmall25.bmp DisableReadyPage=true PrivilegesRequired=poweruser InfoBeforeFile= ShowLanguageDialog=no VersionInfoVersion=2.0.0.0 DisableFinishedPage=false [Files] Source: CSV-OpenAsText.vbs; DestDir: {app}; Flags: ignoreversion [Registry] Root: HKCR; Subkey: Excel.CSV\shell\OpenAsText; ValueType: string; ValueData: Open as text; Flags: uninsdeletekey Root: HKCR; Subkey: Excel.CSV\shell\OpenAsText\command; ValueType: string; ValueData: "wscript ""{app}\CSV-OpenAsText.vbs"" ""%1"""; Flags: uninsdeletekey [Messages] WelcomeLabel2=This will install [name/ver] on your computer.%n%n{#MyAppName} installs a new "Open as text" context menu item for .CSV files. This menu item will open the .CSV file in Microsoft Excel, but prevent Excel from automatically converting data that looks like a date or a number (e.g. phone numbers). To use, simply right-click on a .CSV file and select the "Open as text" item. All columns will be opened as text columns. FinishedLabelNoIcons=Setup has finished installing [name] on your computer.%n%nYou may now right-click on a .CSV file and select "Open as text". ButtonNext=&Install ClickNext=Click Install to continue, or Cancel to exit Setup.