|
i like to know Is it free for commercial use ??
tbhattacharjee
|
|
|
|
|
|
How to install prerequisite without showing any dialog box which say (The following applications are required before setup can continue)
I want to make a setup that will search and install without asking.
I need to install .net client profile without asking the user to install.
Can you tell me how to do that
|
|
|
|
|
Does this script install the .NET Client Profile or the .NET 4 Full install?
I can't see where (or why) it chooses and the #define statement seems to encompass both.
Thanks,
Nick
|
|
|
|
|
Hi,
i tried to install the MyProgram setup.
in last step of installation its showing, "Download Dependencies Windows installer and SQL Server r2"
then i click next button. the progress bar running and showing file downloading then its shows successfully installed. but the windows installer and sql server is not installed in my PC.
Can any one help me ?is any where i need to change the code.
Thanks
karthik
|
|
|
|
|
Hello man. Thank you for this script so good!
I have a doubt about the terms
#define use_dotnetfx11
#define use_dotnetfx11lp
.....
In the examples of define term we used, see
#define MyAppName "My Program"
#define MyAppVer GetFileVersion("MyProg.exe")
But the use_dotnetfx11 there is not a value setted...
as:
#define use_dotnetfx11lp = "??????"
And my pascal code I have:
#ifdef use_dotnetfx11
dotnetfx11();
#ifdef use_dotnetfx11lp
dotnetfx11lp();
#endif
dotnetfx11sp1();
#endif
How does it know that use_dotnetfx11 is true or false?
Is the right way?
|
|
|
|
|
I finished my project in vb.net.
What do I need to have in order to run this tool properly (beside my exe and database)?
Do I need all the Dlls & Ocxs?
Do I need to specify which framework I'm using?
Is it possible to get into details of how to use it with an example?
Thank you
Ami
Israel
|
|
|
|
|
Hi... First of all, I want to thank you very much because this post help me a lot. But somehow i still confused about the dependencies file. I need to include microsoft installer 3.1. I delved into the msi31.iss file and find out that if the file is not found, the setup will download the msi31 from the internet.
I've got the msi31 installer from visual studio. The name was "WindowsInstaller-KB893803-v2-x86.exe". And in the msi31.iss file, there was "AddProduct('msi31.exe', " line. should i modify the line or the file name, or perhaps i should not?
Thanks
|
|
|
|
|
Message Closed
modified 23-Dec-20 12:37pm.
|
|
|
|
|
I've done that with vcredist2015.exe and the file isn't included in the installer. Do I need to add it manually to the installer or should it be included automatically?
|
|
|
|
|
Very useful and clear. Thanks a lot!
|
|
|
|
|
Hi
Is there a way to use your scripts to install the .Net Framework on e.g. a Win Server 2008 R2/2012? As you must use the Role Manager, the current scripts don't work for me.
Thank you and thanks for your great project!
|
|
|
|
|
this powershell script does the job (you need to specifiy the Dotnet-Setup Url):
Param($computer = "localhost")
Function Get-OSVersion($computer,[ref]$feature)
{
$os = Get-WmiObject -class Win32_OperatingSystem -computerName $computer
Switch ($os.Version)
{
"6.1.7600"
{
If($os.ProductType -ne 1) #only 2008R2
{
$feature.value = "NET-FRAMEWORK"
} #end if
} #end 7600
"6.2.9200"{
If($os.ProductType -ne 1) #only 2012
{
$feature.value = "NET-FRAMEWORK-Core"
} #end if
}
DEFAULT { $feature.value = ""}
} #end switch
} #end Get-OSVersion
# *** entry point to script ***
$feature = $null
Get-OSVersion -computer $computer -feature ([ref]$feature)
$x = Read-Host 'Installing .Net Framework. Do you want to continue? (y/n)'
if ($x -like 'y')
{
if ($feature.value -ne "")
{
$wc = New-Object System.Net.WebClient
$fullPathIncFileName = $MyInvocation.MyCommand.Definition
$currentScriptName = $MyInvocation.MyCommand.Name
$currentExecutingPath = $fullPathIncFileName.Replace($currentScriptName, "")
$wc.DownloadFile(<DOTNETDOWNLOADURL>, "$currentExecutingPath\dotnetfx35setup.exe")
Install-WindowsFeature -name $feature -source dotnetfx35setup.exe
}
}
else
{
exit 1;
}
|
|
|
|
|
Hi,
sorry, can't ge this to work.
We are using "dism" instead:
edit products.iss:
[Code]
const sFeatureInstall='featureinstall';
procedure AddProduct(FileName, Parameters, Title, Size, URL: string; InstallClean : boolean; MustRebootAfter : boolean);
var
path: string;
i: Integer;
begin
installMemo := installMemo + '%1' + Title + #13;
path := ExpandConstant('{src}{\}') + CustomMessage('DependenciesDir') + '\' + FileName;
if (not FileExists(path)) and not (URL = '') then
begin
path := ExpandConstant('') + FileName;
isxdl_AddFile(URL, path);
downloadMemo := downloadMemo + '%1' + Title + #13;
downloadMessage := downloadMessage + ' ' + Title + ' (' + Size + ')' + #13;
end;
i := GetArrayLength(products);
SetArrayLength(products, i + 1);
// special treatment for bug #11483
if (LowerCase(FileName) = sFeatureInstall) then
products[i].File := sFeatureInstall
else
products[i].File := path;
products[i].Title := Title;
products[i].Parameters := Parameters;
products[i].InstallClean := InstallClean;
products[i].MustRebootAfter := MustRebootAfter;
end;
function SmartExec(prod : TProduct; var ResultCode : Integer) : boolean;
var
showFlag: Integer;
OldState: Boolean;
begin
showFlag := SW_SHOWNORMAL;
//install OS feature (like on server 2008R2 and server 2012, e.g. NetFx3)
if (LowerCase(prod.File) = sFeatureInstall) then
begin
OldState := EnableFsRedirection(False);
try
showFlag := SW_HIDE; //SW_HIDE command line window
Result := Exec(ExpandConstant(''),'/C dism /NoRestart /Online /Enable-Feature:'+prod.Parameters+' /all', '',showFlag, ewWaitUntilTerminated, ResultCode);
finally
EnableFsRedirection(OldState);
end;
end
else
begin//no feature install
if (LowerCase(Copy(prod.File,Length(prod.File)-2,3)) = 'exe') then
begin
Result := Exec(prod.File, prod.Parameters, '', showFlag, ewWaitUntilTerminated, ResultCode);
end
else
begin
Result := ShellExec('', prod.File, prod.Parameters, '', showFlag, ewWaitUntilTerminated, ResultCode);
end;
end;//no feature install
end;
edit dotnetfx35sp1.iss
procedure dotnetfx35sp1();
var
params: string;
begin
if (netfxspversion(NetFx35, '') < 1) then
begin
if (IsWin2012) or (IsWin2008R2) then
begin
params := 'NetFx3';
AddProduct(sFeatureInstall,
params,
CustomMessage('dotnetfx35sp1_title'),
CustomMessage('dotnetfx35sp1_size'),
dotnetfx35sp1_url,
false, false);
end
else
AddProduct('dotnetfx35sp1' + GetArchitectureString() + '.exe',
'/lang:enu /passive /norestart',
CustomMessage('dotnetfx35sp1_title'),
CustomMessage('dotnetfx35sp1_size'),
dotnetfx35sp1_url,
false, false);
end;
end;
|
|
|
|
|
Hi,
what do you mean with bug #11483?
Can you post the code for IsWin2012 and IsWin2008R2?
A little bit off topic:
Have you a solution for Windows 8/8.1? The .NET Framework 3.5 can only be installed with an existing internet connection or with an command prompt and the installation media (Windows DVD)?
Thanks,
Freddy
|
|
|
|
|
Hi,
this bug nummber is a reference to our internal bug tracking system. Don't care about that.
Here are the two functions:
function IsWin2008R2(): boolean;
var
winVersion : TWindowsVersion;
begin
GetWindowsVersionEx(winVersion);
Result := (winVersion.Major = 6) and (winVersion.Minor = 1) and (winVersion.ProductType <> VER_NT_WORKSTATION);
end;
function IsWin2012(): boolean;
var
winVersion : TWindowsVersion;
begin
GetWindowsVersionEx(winVersion);
Result := (winVersion.Major = 6) and (winVersion.Minor = 2) and (winVersion.ProductType <> VER_NT_WORKSTATION);
end;
Regarding to Windows8(.1): No I didn't try that because since we support windows8 we upgraded to .NET4.0.
Regards,
Harald
|
|
|
|
|
Hi! I have a question on your iss file on inno setup.
#define MyAppSetupName 'MyProgram'
#define MyAppVersion '4.0'
OutputBaseFilename={#MyAppSetupName}-{#MyAppVersion}
Can you explain this code?
|
|
|
|
|
MyAppSetupName and
MyAppVersion are constants, defined by this syntax:
#define ConstantName 'Value'
You can use any constant in the iss file by using {#ConstantName}.
InnoSetup will compile you setup program and replace all constants by their respective values.
|
|
|
|
|
Thanks your article..
I can get useful tips of Inno Setup. Great Job!(:
|
|
|
|
|
Amazing, helped me loads and saved me so much time.
|
|
|
|
|
How can i Check chrome is installed or not.
if not i want to download and install.
|
|
|
|
|
I want to Install Java if not installed.
|
|
|
|
|
This is an awesome system. I know I will use this quite a bit.
If I could give a 10 I would!
Bob Dole The internet is a great way to get on the net.
2.0.82.7292 SP6a
|
|
|
|
|
Here are the changes to detect 4.5
dotnetfxversion.iss
[Code]
type
NetFXType = (NetFx10, NetFx11, NetFx20, NetFx30, NetFx35, NetFx40Client, NetFx40Full, NetFx45Full);
const
netfx11plus_reg = 'Software\Microsoft\NET Framework Setup\NDP\';
function netfxinstalled(version: NetFXType; lcid: string): boolean;
var
regVersion: cardinal;
regVersionString: string;
begin
if (lcid <> '') then
lcid := '\' + lcid;
if (version = NetFx10) then begin
RegQueryStringValue(HKLM, 'Software\Microsoft\.NETFramework\Policy\v1.0\3705', 'Install', regVersionString);
Result := regVersionString <> '';
end else begin
case version of
NetFx11:
RegQueryDWordValue(HKLM, netfx11plus_reg + 'v1.1.4322' + lcid, 'Install', regVersion);
NetFx20:
RegQueryDWordValue(HKLM, netfx11plus_reg + 'v2.0.50727' + lcid, 'Install', regVersion);
NetFx30:
RegQueryDWordValue(HKLM, netfx11plus_reg + 'v3.0\Setup' + lcid, 'InstallSuccess', regVersion);
NetFx35:
RegQueryDWordValue(HKLM, netfx11plus_reg + 'v3.5' + lcid, 'Install', regVersion);
NetFx40Client:
RegQueryDWordValue(HKLM, netfx11plus_reg + 'v4\Client' + lcid, 'Install', regVersion);
NetFx40Full:
RegQueryDWordValue(HKLM, netfx11plus_reg + 'v4\Full' + lcid, 'Install', regVersion);
NetFx45Full:
RegQueryDWordValue(HKLM, netfx11plus_reg + 'v4\Full', 'Release', regVersion);
end;
Result := (regVersion <> 0);
end;
end;
function netfxspversion(version: NetFXType; lcid: string): integer;
var
regVersion: cardinal;
begin
if (lcid <> '') then
lcid := '\' + lcid;
case version of
NetFx10:
//not supported
regVersion := -1;
NetFx11:
if (not RegQueryDWordValue(HKLM, netfx11plus_reg + 'v1.1.4322' + lcid, 'SP', regVersion)) then
regVersion := -1;
NetFx20:
if (not RegQueryDWordValue(HKLM, netfx11plus_reg + 'v2.0.50727' + lcid, 'SP', regVersion)) then
regVersion := -1;
NetFx30:
if (not RegQueryDWordValue(HKLM, netfx11plus_reg + 'v3.0' + lcid, 'SP', regVersion)) then
regVersion := -1;
NetFx35:
if (not RegQueryDWordValue(HKLM, netfx11plus_reg + 'v3.5' + lcid, 'SP', regVersion)) then
regVersion := -1;
NetFx40Client:
if (not RegQueryDWordValue(HKLM, netfx11plus_reg + 'v4\Client' + lcid, 'Servicing', regVersion)) then
regVersion := -1;
NetFx40Full:
if (not RegQueryDWordValue(HKLM, netfx11plus_reg + 'v4\Full' + lcid, 'Servicing', regVersion)) then
regVersion := -1;
NetFx45Full:
if (not RegQueryDWordValue(HKLM, netfx11plus_reg + 'v4\Full' + lcid, 'Servicing', regVersion)) then
regVersion := -1;
end;
Result := regVersion;
end;
dotnetfx45full.iss
// requires Windows Vista SP2 (x86 and x64), Windows 7 SP1 (x86 and x64), Windows Server 2008 R2 SP1 (x64), Windows Server 2008 SP2 (x86 and x64)
// requires Windows Installer 3.1
// requires Internet Explorer 5.01
// WARNING: express setup (downloads and installs the components depending on your OS) if you want to deploy it on cd or network download the full bootsrapper on website below
// http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992
[CustomMessages]
dotnetfx45full_title=.NET Framework 4.5 Full
dotnetfx45full_size=3 MB - 197 MB
;http://www.microsoft.com/globaldev/reference/lcid-all.mspx
en.dotnetfx45full_lcid=''
de.dotnetfx45full_lcid='/lcid 1031 '
[Code]
const
dotnetfx45full_url = 'http://download.microsoft.com/download/B/A/4/BA4A7E71-2906-4B2D-A0E1-80CF16844F5F/dotNetFx45_Full_setup.exe';
procedure dotnetfx45full();
begin
if (not netfxinstalled(NetFx45Full, '')) then
AddProduct('dotNetFx45_Full_setup.exe',
CustomMessage('dotnetfx45full_lcid') + '/q /passive /norestart',
CustomMessage('dotnetfx45full_title'),
CustomMessage('dotnetfx45full_size'),
dotnetfx45full_url,
false, false);
end;
|
|
|
|
|
You also need to add the following lines to your setup.iss file:
#define use_dotnetfx45full
in the head
#ifdef use_dotnetfx45full
#include "scripts\products\dotnetfx45full.iss"
#endif
below the block starting with #ifdef use_dotnetfx40
and finally
#ifdef use_dotnetfx45full
dotnetfx45full();
#endif
before the section #ifdef use_wic
|
|
|
|
|