|
|
Message Closed
modified 23-Dec-20 12:38pm.
|
|
|
|
|
|
great tool btw. it is working fine other than i only require .net 4 framework client, so i disabled all others in setup.iss except
#define use_dotnetfx40
i then placed dotNetFx40_Client_setup.exe in the following folder
bin\MyProgramDependencies
but when i compile the setup.exe it is still only 5 mb in size which is all my app files it is not including the 40mb dotNetFx40_Client_setup.exe within the setup.exe??
|
|
|
|
|
i even took you initial example program and just used it and did the same thing with the same results? i even copied the
MyProgram-4.0.exe
MyProgramDependencies
with the dotNetFx40_Client_setup.exe in the MyProgramDependencies folder, to the host witout .net client 4.0 and still it wanted to go download .net 4 client from msft??
|
|
|
|
|
Make sure that you added the executable in the [Files] section if you want it included in your setup.exe
Also, I really need to install the dependencies offline. For my software, I only need dotNetFx40_Full_setup.exe. I placed the executable in bin/MyProgramDependencies, but it still just tries to download from the site regardless.
Is there something I'm missing?
|
|
|
|
|
There is no word to say how thankful I am for this article.
I've been waiting for a software company for over one year to release a new version of their installer software (which I will be able to upgrade for free) and during this time I've been waiting for be able to realease my own software.
Now, thanks to you, I don't have to wait any longer. My software is complete and I can finally publish it. Thank you man, you are the best!
|
|
|
|
|
Hi,
I needed the compact database version 4.0 for my project. Here my code for use:
[CustomMessages]
sqlcompact40_title=SQL Server Compact 4.0
sqlcompact40_titlex64=SQL Server Compact 4.0 x64
en.sqlcompact40_size=2.5 MB
de.sqlcompact40_size=2.5 MB
en.sqlcompact40_sizex64=2.3 MB
de.sqlcompact40_sizex64=2.3 MB
[Code]
const
sqlcompact40_url = 'http://download.microsoft.com/download/0/5/D/05DCCDB5-57E0-4314-A016-874F228A8FAD/SSCERuntime_x86-ENU.exe';
sqlcompact40_urlx64 = 'http://download.microsoft.com/download/0/5/D/05DCCDB5-57E0-4314-A016-874F228A8FAD/SSCERuntime_x64-ENU.exe';
procedure sqlcompact40();
begin
if (not IsWin64 and not RegKeyExists(HKLM, 'SOFTWARE\Microsoft\Microsoft SQL Server Compact Edition\v4.0\ENU')) then
begin
AddProduct('SSCERuntime_x86-ENU.exe', ' /i /passive /norestart',
CustomMessage('sqlcompact40_title'),
CustomMessage('sqlcompact40_size'),
sqlcompact40_url,
false, false);
end else if (IsWin64 and (not RegKeyExists(HKLM, 'SOFTWARE\Microsoft\Microsoft SQL Server Compact Edition\v4.0\ENU') and not RegKeyExists(HKLM, 'Wow6432Node\SOFTWARE\Microsoft\Microsoft SQL Server Compact Edition\v4.0\ENU'))) then
begin
AddProduct('SSCERuntime_x64-ENU.exe', ' /i /passive /norestart',
CustomMessage('sqlcompact40_titlex64'),
CustomMessage('sqlcompact40_sizex64'),
sqlcompact40_urlx64,
false, false);
end;
end;
modified 12-Jul-12 10:39am.
|
|
|
|
|
patch for vcredist2010.iss - the two issues fixed are a) detection on x64/ia64 (note the second version check) and b) checking for "Installed" instead of "Install" entry:
procedure vcredist2010();
var
version: cardinal;
version2: cardinal;
begin
RegQueryDWordValue(HKLM, 'SOFTWARE\Microsoft\VisualStudio\10.0\VC\VCRedist\' + GetString('x86', 'x64', 'ia64'), 'Installed', version);
RegQueryDWordValue(HKLM, 'SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\VC\VCRedist\' + GetString('x86', 'x64', 'ia64'), 'Installed', version2);
if ((version <> 1) and (version2 <> 1)) then
AddProduct('vcredist2010' + GetArchitectureString() + '.exe',
CustomMessage('vcredist2010_lcid') + '/passive /norestart',
CustomMessage('vcredist2010_title'),
CustomMessage('vcredist2010_size' + GetArchitectureString()),
GetString(vcredist2010_url, vcredist2010_url_x64, vcredist2010_url_ia64), false, false);
end;
|
|
|
|
|
BTW, I don't know if that affects all installations on x64/ia64 systems - or only such where at least once a x86 version of the runtime had been installed prior installation of the x64/ia64 version. At least on my system, the first node didn't have any entry - and the second node had one for x86+x64.
|
|
|
|
|
Hey stfx.
Amazing work!
Wanted to let you know I've added my own danish translation that I use for my projects. Message me privately if you wanna use it.
Best regards,
myl
|
|
|
|
|
Hello,
i get the message "An error occured while installing..."
Maybe you have to answer this often, but i have no solution for my Inno Setup setup.
I use win7 and want to add the jet4 software to my program
How can i solve it?
|
|
|
|
|
Hi, great solution! I'm trying it but I need to restart my system before installing SQL Server 2008(one of my dependencies).
I read you add some feature about restarting the system. Could you tell me how to achieve this?
Thank's in advance.
Andres
|
|
|
|
|
Hi -
When I try to have the SQLCompact3.5sp2 installed on a vista machine (and any other machine for that matter), I get a error message;
"
This installation could not be opened. Contact the application vendor to verify that this a valid Windows installer package.
"
I've done some reasearch and it looks like it's because the original script points to an MSI and the download now points to an EXE which extracts x86 and x86 MSI's... so which then don't run automatically.
I'm a bit stuck... anyone got over this problem before?
Thanks for any help.
|
|
|
|
|
Hi,
I have the same problem on WindowsXP.
Thanks for any help.
|
|
|
|
|
Message Closed
modified 23-Dec-20 12:38pm.
|
|
|
|
|
Hi, I have the same problem. The changes don't fix the problem. The downloaded file is a selfextracting file containing two msi-files.
|
|
|
|
|
Try this code
Unfortunately you need to host sql compact by yourself.
File: scripts\products\sqlcompact35sp2.iss
[CustomMessages]
sqlcompact35sp2_title=SQL Server Compact 3.5 Service Pack 2
sqlcompact35sp2_titlex64=SQL Server Compact 3.5 Service Pack 2 x64
en.sqlcompact35sp2_size=3.0 MB
de.sqlcompact35sp2_size=3.0 MB
en.sqlcompact35sp2_sizex64=3.5 MB
de.sqlcompact35sp2_sizex64=3.5 MB
[Code]
const
sqlcompact35sp2_url = 'http://pliki.naturalmedia.pl/prerequisites/SSCERuntime_x86-ENU.msi';
sqlcompact35sp2_urlx64 = 'http://pliki.naturalmedia.pl/prerequisites/SSCERuntime_x64-ENU.msi';
procedure sqlcompact35sp2();
begin
if (not IsWin64 and
not RegKeyExists(HKLM, 'SOFTWARE\Microsoft\Microsoft SQL Server Compact Edition\v3.5\ENU')) then
AddProduct('SSCERuntime_x86-ENU.msi',
'/qb',
CustomMessage('sqlcompact35sp2_title'),
CustomMessage('sqlcompact35sp2_size'),
sqlcompact35sp2_url,
false, false);
if (IsWin64
and
(
not RegKeyExists(HKLM, 'SOFTWARE\Microsoft\Microsoft SQL Server Compact Edition\v3.5\ENU')
and not RegKeyExists(HKLM, 'Wow6432Node\SOFTWARE\Microsoft\Microsoft SQL Server Compact Edition\v3.5\ENU')
)) then
begin
AddProduct('SSCERuntime_x86-ENU.msi',
'/qb',
CustomMessage('sqlcompact35sp2_title'),
CustomMessage('sqlcompact35sp2_size'),
sqlcompact35sp2_url,
false, false);
AddProduct('SSCERuntime_x64-ENU.msi',
'/qb',
CustomMessage('sqlcompact35sp2_titlex64'),
CustomMessage('sqlcompact35sp2_sizex64'),
sqlcompact35sp2_urlx64,
false, false);
end;
end;
Tomasz Maj
|
|
|
|
|
Thanks Tomasz, it works! I had already thought about such a solution, but with your code I didn't needed to write it myself
|
|
|
|
|
Hello,
I have got the problem that the installer wants to install the c++ 2010
reditributable package and then exits because it recognizes that a newer
version of the package is already installed.
That's possible because I have Visual Studio 2010 installed on that machine.
But what can I do then ? I cannot install the program.
It would be great if your could edit the vcredist2010.iss file that it recognizes
that the package is already installed if its a newer one.
Thanks,
Matthias
|
|
|
|
|
If you look into scripts/products/vcredist2010.iss, I think it should say
RegQueryDWordValue(HKLM, 'SOFTWARE\Microsoft\VisualStudio\10.0\VC\VCRedist\' + GetString('x86', 'x64', 'ia64'), 'Installed', version);
instead of
RegQueryDWordValue(HKLM, 'SOFTWARE\Microsoft\VisualStudio\10.0\VC\VCRedist\' + GetString('x86', 'x64', 'ia64'), 'Install', version);
ie. there is no Install value, but there is Installed. That is also consistent with the check for one on the next line
if (version <> 1) then ...
|
|
|
|
|
True. I've run into that issue as well. But there's one more, regarding detection on on x64/ia64 (regardless which runtime is installed). I'm adressing that in a separate post "Detecting/Installing VC++ 2010 Runtime".
|
|
|
|
|
I've added a new product script called vcredist2008.iss - what is yet missing is proper detection by registry key, though. This is different to VC++ 2010 (numerous keys and versions possible as far as I can see). I tried to workaround this by using the '/q' switch so that no "repair" dialog occurs if already installed. Still, improvements would be welcome:
// requires Windows 7, Windows 7 Service Pack 1, Windows Server 2003 Service Pack 2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2008 R2 SP1, Windows Vista Service Pack 1, Windows XP Service Pack 3
// requires Windows Installer 3.1 or later
// requires Internet Explorer 5.01 or later
// http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992
[CustomMessages]
vcredist2008_title=Visual C++ 2008 Redistributable
en.vcredist2008_size=3.9 MB
de.vcredist2008_size=3,9 MB
en.vcredist2008_size_x64=4.7 MB
de.vcredist2008_size_x64=4,7 MB
en.vcredist2008_size_ia64=4.0 MB
de.vcredist2008_size_ia64=4,0 MB
;http://www.microsoft.com/globaldev/reference/lcid-all.mspx
en.vcredist2008_lcid=''
de.vcredist2008_lcid='/lcid 1031 '
[Code]
const
vcredist2008_url = 'http://download.microsoft.com/download/0/a/5/0a5ce308-1e15-4806-964c-72dbf88de86d/vcredist_x86.exe';
vcredist2008_url_x64 = 'http://download.microsoft.com/download/4/a/9/4a932a53-ab98-44d9-af39-75491eb20006/vcredist_x64.exe';
vcredist2008_url_ia64 = 'http://download.microsoft.com/download/c/9/4/c9494e23-6717-47c3-a061-3cc2ce5453f8/vcredist_IA64.exe';
procedure vcredist2008();
var
version: cardinal;
begin
//RegQueryDWordValue(HKLM, 'SOFTWARE\Microsoft\VisualStudio\10.0\VC\VCRedist\' + GetString('x86', 'x64', 'ia64'), 'Install', version);
//if (version <> 1) then
AddProduct('vcredist2008' + GetArchitectureString() + '.exe',
CustomMessage('vcredist2008_lcid') + '/q /passive /norestart',
CustomMessage('vcredist2008_title'),
CustomMessage('vcredist2008_size' + GetArchitectureString()),
GetString(vcredist2008_url, vcredist2008_url_x64, vcredist2008_url_ia64),
false, false);
end;
|
|
|
|
|
for now I've changed the procedure as follows:
procedure vcredist2008();
var
version: cardinal;
MS, LS: Cardinal;
begin
//RegQueryDWordValue(HKLM, 'SOFTWARE\Microsoft\VisualStudio\10.0\VC\VCRedist\' + GetString('x86', 'x64', 'ia64'), 'Install', version);
//if (version <> 1) then
if GetVersionNumbers(ExpandConstant('{sys}\msvcr90.dll'), MS, LS) = false and GetVersionNumbers('msvcr90.dll', MS, LS) = false then
AddProduct('vcredist2008' + GetArchitectureString() + '.exe',
CustomMessage('vcredist2008_lcid') + '/q /passive /norestart',
CustomMessage('vcredist2008_title'),
CustomMessage('vcredist2008_size' + GetArchitectureString()),
GetString(vcredist2008_url, vcredist2008_url_x64, vcredist2008_url_ia64),
false, false);
end;
|
|
|
|
|
Message Closed
modified 23-Dec-20 12:54pm.
|
|
|
|
|