Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Installation nur auf NT Betriebssystem?


2 replies to this topic

Thomas Wendt

Thomas Wendt
  • Full Members
  • 34 posts

Posted 26 August 2004 - 08:33

Hallo

InstallShield X (english) mit SP1:

Ich habe im Setup unter Installation Information | General Information | Project Properties | Platforms: Windows NT 4.0, Windows 2000, Windows XP, Windows Server 2003 ausgewählt.

Und jetzt kommst.
Das Setup wird trotzdem auf einem Windows 98 Rechner ausgeführt.

Die Anwendung benötigt aber ein Windows NT Betriebssystem.
Und daher möchte ich das dass Setup nur auf NT Betriebssysteme ausgeführt werden kann.

Wie kann ich das nun erreichen?

Danke und Gruß
Thomas Wendt
Thomas Wendt

qtdt

qtdt
  • Members
  • 7 posts

Posted 26 August 2004 - 10:46

Hi

Du kannst in der OnBegin() Funktion die BS abfragen und ggf. die Installation abbrechen.

z.B:

if SYSINFO.WIN9X.bWin95 = TRUE then
MessageBox ("Betriebssystem wird nicht unterstützt!", SEVERE);
abort; // setup abbrechen
elseif SYSINFO.WIN9X.bWin98 = TRUE then
MessageBox ("Betriebssystem wird nicht unterstützt!", SEVERE);
abort;
elseif SYSINFO.WIN9X.bWin9X = TRUE then // Win ME
MessageBox ("Betriebssystem wird nicht unterstützt!", SEVERE);
abort;
endif;


hoffe Du kommst damit weiter.

gruss
qtdt

Thomas Wendt

Thomas Wendt
  • Full Members
  • 34 posts

Posted 26 August 2004 - 11:28

Danke smile.gif

Das hilft mir sehr.
In der Eile habe ich komplett übersehen ein InstallScript zu schreiben.
Das Programm musste halt schnell zum Emüfänger.

Ich habe das jetzt so gelöst:

if (GetSystemInfo (OS, nvResult, svResult) < 0) then
szInfo = "Couldn't get Operating System info.";
abort;
else
if (nvResult = IS_WINDOWS9X) then
MessageBox("Betriebssystem wird nicht unterstützt!", WARNING);
abort;
endif;
endif;

Aber für was kann/muss ich die Platform im Setup angeben?
Das würde mich mal interessieren.

Gruß
Thomas Wendt
Thomas Wendt