|
I have downloaded Windows2000-KB835732-x86-CHS.exe. This commandline parameters for this app are now using:
/quit
/passive
/norestart
etc.
So, I changed those in kb835732.iss from
'/q:a /c:"install /q"'
to
'/passive /norestart'.
However, the function of
Exec(products[i].File, products[i].Parameters, '', SW_SHOWNORMAL, ewWaitUntilTerminated, ResultCode)
in products.iss always got failed. That ResultCode didn't equate to 0.
The installation for dotnetfx20 is OK.
Thanks for any help.
|
|
|
|
|
Hi!
I had same case.Its my way.....
So, I changed kb835732.iss
'/q:a /c:"install /q"'
to
''
I found message and understood.
Windows2000-KB835732-x86-ENU.EXE can't use(Windows 2000 Japanese Edition) .Have to use Windows2000-KB835732-x86-JPN.EXE
If korean use, same problem...(May be use -KOR.EXE)
Then.....
I use dotnetfx20(not SP1).
I'm ok, because windows update automatically change SP1.
Regareds
Yamada
|
|
|
|
|
i downloaded the zip folder and i changed the files part with this part according to my need:
[Files]
Source: "C:\Users\Gautam\Documents\Visual Studio 2005\Projects\Final_Etech(Submit)\Final_Etech\bin\Debug\Final_Etech.exe"; DestDir: "{app}";
Source: "E:\Softy\DOT_NET\.NETFramework_2.0_Installer\dotnetfx.exe"; DestDir: "{app}";
Source: "C:\Users\Gautam\Documents\Visual Studio 2005\Projects\Final_Etech(Submit)\Final_Etech\bin\Debug\Etech.mdb"; DestDir: "{app}";
Source: "C:\Users\Gautam\Documents\Visual Studio 2005\Projects\Final_Etech(Submit)\Final_Etech\bin\Debug\AdminLogin.mdb"; DestDir: "{app}";
Source: "d:\Readme.txt"; DestDir: "{app}"; Flags: isreadme
also in some places i have to change the name of the .exe file........
but doing this is causing me problems with the .mdb file........
what should i do to the ,mdb file then?
please help
thank you
|
|
|
|
|
Hi,
Great code guy
i've added French support, Deutch x64 support for one patch.
i've changed some code in KB835732 to support English/Deutch/French and its arguments which wasn't correct
how can i submit it to you ?
----------------------------------------------
Under win2k Pro, it seems that multiple patch works bad (SP4 + patches without .NET):
- All is downloaded without any problem
- KB835732 has been installed but we have an error message at the end (so 3 patches are tagged as not deployed). But this patch appear in Add/removeprograms
So : I've checked in %WINDIR% : \$NtUninstallKB835732$ is present so patch is installed and ok.
- I launch setup again. Only .NET 2.0SP1 & language pack appear.
- Install failed again.
- I launch setup again. Only Language pack appear
- install OK, program OK.
I'm using 2.0 SP1 because 2.0SP2 is not compatible with Win2K.
Any idea ?
|
|
|
|
|
i've checked with WinXP Pro SP3 Fr. No problem, all is ok.
i've checked with Vista Pro SP2 Fr. Small problem, .NET2.0 don't exist so I think I must change setup to download .NET3.5 for Vista & 7
Here's the code :
if minwinversion(6, 0) then begin
dotnetfx35sp1();
dotnetfx35sp1lp();
end else begin
if minwinversion(5, 1) then begin
dotnetfx20sp2();
dotnetfx20sp2lp();
end else begin
if minwinversion(5, 0) and minwinspversion(5, 0, 4) then begin
kb835732();
dotnetfx20sp1();
dotnetfx20sp1lp();
end else begin
dotnetfx20();
dotnetfx20lp();
end;
end;
end;
But same problem as Win 2K Pro : .NET 3.5 failed but is installed. 2nd install will deploy Language pack.
modified on Friday, January 15, 2010 6:57 AM
|
|
|
|
|
Dear stfx,
your article really rules!!!
I found a problem in isxdl.dll on win98:
-version 5.3.0 fails to be loaded
-version 5.1.5 is loaded successfully
So, when you write the requirements, i.e.
"Applications used for the script are:
* Inno Setup - setup engine (version 5.3.4)
* ISTool - extends Inno Setup but I just needed the isxdl.dll downloader (version 5.3.0)"
I think you should decide if support w98 or use ISTool 5.3.0
... this, of course, is valid if you have my same problem too ...
I tried to get in touch with the ISTool developer w/o success ...
Regards,
Ace
|
|
|
|
|
Thank you good information.I save time.
Additonally....
isxdl.dll
Version 5.1.5
Windows98SE/2000 download speed and file xx of xx did't display.
(I think asian font problem)
Windows XP japanese / XP english edition is ok.
Version 5.3.0
Windows2000 can display speed and file xx% of xx%.
(but win98 didn't work)
Thank you.
Yamada
|
|
|
|
|
I added a language pack chinese.ini to isxdl\chinese.ini, and I tried use Unicode, local chinese encoding, both are NOT working. the download page cannot display the chinese at all. I have no idea.
I'm on an English XP, and I installed "Asian Language Files" via "Control Panel".
My InnoSetup is unicode version.
I don't know why. Can you tell me how you made your language file?
Thanks. Arigatou gozaimasu.
Peter
|
|
|
|
|
You save me lots of hours. Dealing with MS Setup and program data on W7 I recall Inno setup I used years ago...
Finished installation after 30 minutes even with MySQL and .NET35 prerequisity...
Gold medal for you...
|
|
|
|
|
Hi guys,
I've noted that the version comparison in some cases does not work correctly, for example when installing on an pc the msi 3.1 cannot install because the version installed on it is greatter then the check but the check is returning that it's not.
Looking at the code, the comparison is just between strings ... so I think its better to improve this comparison to not fail ...
procedure msi31(MinVersion: string);
begin
// Check for required Windows Installer 3.0 on Windows 2000 or higher
if minwinversion(5, 0) and (fileversion(ExpandConstant('{sys}{\}msi.dll')) < MinVersion) then
AddProduct('msi31.exe',
'/qb /norestart',
CustomMessage('msi31_title'),
CustomMessage('msi31_size'),
msi31_url);
end;
I've improved to this one that gets the msi dll location from registry, but the comparison stills the same ... any tips on comparing versions ?
procedure msi31(MinVersion: string);
var
sMSIDll: string;
begin
// Check for required Windows Installer 3.0 on Windows 2000 or higher
if RegQueryStringValue(HKEY_LOCAL_MACHINE, 'Software\Microsoft\Windows\CurrentVersion\Installer',
'InstallerLocation', sMSIDll) then
sMSIDll := sMSIDll + 'msi.dll' else
sMSIDll := ExpandConstant('{sys}{\}')+'msi.dll';
if minwinversion(5, 0) and (fileversion(sMSIDll) < MinVersion) then
AddProduct('msi31.exe',
'/quiet /norestart',
CustomMessage('msi31_title'),
CustomMessage('msi31_size'),
msi31_url);
end;
|
|
|
|
|
Message Closed
modified 23-Dec-20 12:41pm.
|
|
|
|
|
Hi!
Some examples for wrong results with String compare:
11.50 < 9.40
3.10.5 < 3.3.5
7.2104 < 7.888
10.00.TC11 < 10.00.TC9
-> string comppare may always fail when the number of digits of each part is not fixed
This is also a reason that a lot of version aware applications fail when the underlying database reaches version 10
Regards,
runeb
|
|
|
|
|
Your last recent version tries to install kb835732 on Windows XP, i think that is wrong.
I noticed that you removed the check for
exactwinversion(5, 0)
from the checks in kb835732.iss.
You should re-add that check.
Nice work!!!
|
|
|
|
|
Dear stfx,
I have read through your article and used your scripts to provide the installation of the .Net Framework 3.5 sp1 in my installer if it is not present on the user's computer.
On a new Vista Home Premium machine, everything runs fine until after the .Net Framework is downloaded and goes through the process of installing the files. It comes up with an error page (in my installer) stating that an error has occured while trying to install the framework.
However, the strange thing is that after exiting the installer, under Add/Remove programs, the .Net Framework 3.5 sp1 is listed there as being installed. And, when I run the installer again it installs my program (without downloading the framework this time), which runs correctly.
So this leads me to believe that the Framework is being installed, only for some reason an error message is appearing stating the opposite. Could you kindly advise me on this issue?
Regards,
Anthony
P.S. Below is an extract from my InitializeSetup() function that deals with the prerequisites. Just to make sure that nothing is wrong in there. Also I am using the latest version of your code.
initwinversion();
if not minwinspversion(5, 0, 3) then begin
MsgBox(FmtMessage(CustomMessage('depinstall_missing'), [CustomMessage('win2000sp3_title')]), mbError, MB_OK);
exit;
end;
if not minwinspversion(5, 1, 2) then begin
MsgBox(FmtMessage(CustomMessage('depinstall_missing'), [CustomMessage('winxpsp2_title')]), mbError, MB_OK);
exit;
end;
msi31('3.1');
dotnetfx35sp1();
dotnetfx35sp1lp();
Result := true;
Check out my desktop conversion software for Windows -
www.universalconverter.net
|
|
|
|
|
Message Closed
modified 23-Dec-20 12:41pm.
|
|
|
|
|
Hey,
Thanks! That solved it!
Kind regards,
Anthony
Check out my desktop conversion software for Windows -
www.universalconverter.net
|
|
|
|
|
On English Vista(64bit) my script works.
The same script breaks on line 5 in isxdl.iss with "Unknown type PChar" on Swedish Xp Home
Do you know how I might resolve this?
|
|
|
|
|
Message Closed
modified 23-Dec-20 12:42pm.
|
|
|
|
|
Thanks stfx, that fixed it. Do you think any conditional statements can be put into this script so that users won't have to change this manually depending on what version of inno they installed. I appreciate that this is a new issue since 5.35. Thanks.
|
|
|
|
|
Hello,
First of all, thank you for the nice work.
I'm new with INNO Setup, so all this might look stupid ... but i have some issues with the installer though. My dependencies (msi31.exe and dotnetfx35.exe) fail to install. I get no error message, the setup just skip them.
I did a little check and it might be a problem with the PrepareToInstall() function (where the InstallProducts() function it's called). I haven't found any call for PrepareToInstall().
So i called PrepareToInstall inside NextButtonClick and it does start msi31.exe but another problem appear. It seems that dotnetfx35.exe starts before msi31.exe finish it's installation and of course it fails (since dotnetfx35.exe require Windows installer 3.1).
I'll keep working on it, but a little push in the right direction will be much appreciated ... because i'm not really sure about what i'm doing .
P.S. The /qb parameter doesn't work for Windows installer 3.1. So for the moment i'm using /quiet.
|
|
|
|
|
Message Closed
modified 23-Dec-20 12:42pm.
|
|
|
|
|
I partially solved the problem, it was mainly because of my INNO Setup version. It was older than 5.3.2 where this PrepareToInstall was added as an event function.
After the upgrade to the last version, if i remove the manual call for PrepareToInstall, it's installing msi31 correctly but fail to install dotnetfx35 (the order it's exactly like you said). I kind of solved that too by calling PrepareToInstall again inside the NextButtonClick function. I don't know why i have to call PrepareToInstall again to make it work, so i'll keep checking ... but for the moment it's the only solution i found.
And yes, the original setup.iss have the same problem ... it's installing msi31, but then fail on dotnetfx35.
|
|
|
|
|
You have to change in products.iss "function PrepareToInstall: String;" to "function PrepareToInstall(var NeedsRestart: Boolean): String;" and it works fine!
|
|
|
|
|
Hello,
I think there are wrong options for installing .NET 2.0 + .NET 2.0 SP1 (see dotnetfx20.iss and dotnetfx20sp1.iss).
I had some issues during installation and recognized that there are parameters which do not exist (that’s what the syntax dialog said).
I replace it with "/qb /norestart /lang:ENU" and everything works fine.
Alex
|
|
|
|
|