Hallo,
wie kann ich denn in der setup.inf sinnvollerweise abfragen, ob über die EMC eine "Reinstallation" einer Software angeworfen wurde?
Es gibt ja standardmässig die Sektionen #Set:Installation und #Set:Deinstallation, aber nichts wie '#Set:Reinstallation', also vermute ich, man muss sich da selbst was zusammenbasteln? (if ... then ...)
(Ich will bei einer Reinstallation einige Kommandos anders ausführen als bei einer Erstinstallation.)
Danke für Tipps!
Wie in Setup.inf prüfen, ob es eine Reinstallation ist?
-
- Posts: 39
- Joined: 05. Aug 2015, 00:04
- Contact:
-
- Moderator
- Posts: 7965
- Joined: 13. Dec 2004, 23:10
- Location: Adendorf/Lüneburg
Re: Wie in Setup.inf prüfen, ob es eine Reinstallation ist?
Versuchen Sie mal die Variable INSTALLEDVERSION.
Wenn die INSTALLEDVERSION der VERSION entspricht sollte es eine Reinstallation sein.
Wenn die INSTALLEDVERSION der VERSION entspricht sollte es eine Reinstallation sein.
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
-
- Posts: 39
- Joined: 05. Aug 2015, 00:04
- Contact:
Re: Wie in Setup.inf prüfen, ob es eine Reinstallation ist?
Danke für den Tipp,
allerdings ist die Variabel %INSTALLEDVERSION% bei der Abfrage im Paket leer (%VERSION% hat den richtigen Wert).
Das Paket wurde aber eindeutig durch Empirum installiert.
Dadurch greift die if-Prüfung nicht und meine Reinstall-Sektion wird nicht angesprungen.
Noch eine Idee dazu (warum die Variabel leer ist)?
allerdings ist die Variabel %INSTALLEDVERSION% bei der Abfrage im Paket leer (%VERSION% hat den richtigen Wert).
Das Paket wurde aber eindeutig durch Empirum installiert.
Dadurch greift die if-Prüfung nicht und meine Reinstall-Sektion wird nicht angesprungen.
Noch eine Idee dazu (warum die Variabel leer ist)?
-
- Moderator
- Posts: 7965
- Joined: 13. Dec 2004, 23:10
- Location: Adendorf/Lüneburg
Re: Wie in Setup.inf prüfen, ob es eine Reinstallation ist?
Kann sein dass die Variable nur in der Requirements-Sektion funktioniert.
Dann via IF auf ein Element abfragen das mit dem Paket kommt.
z.B. eine Datei oder einen RegKey.
Wenn da > Reinstallation.
Dann via IF auf ein Element abfragen das mit dem Paket kommt.
z.B. eine Datei oder einen RegKey.
Wenn da > Reinstallation.
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
Who is online
Users browsing this forum: Google [Bot] and 10 guests