J'ai fait quelques tests avec InstallShield Express et ça fonctionne. Le code que je t'ai donné était un peu erronné. Voici le code corrigé:
Code :
Dim InstallPath
InstallPath = Session.Property("INSTALLDIR")
MsgBox InstallPath
Après avoir fait quelques recherches j'ai découvert que l'objet Session fait partit de Windows Installer.
MSDN a écrit:
The Property property of the Session object is a read-write property that represents the
string value of a named installer property, as maintained by the Session object in the in-memory Property table, or,
if it is prefixed with a percent sign (%), the value of a system environment variable for the current process.
Either string or integer values may be supplied. A non-existent property or environment variable is equivalent
to its value being Null.
object.Property(name)
object : Session object
name: Required case-sensitive name of a property, or a case-insensitive name of an environment variable prefixed by a percent sign (%).
(source: MSDN, Platform SDK: Windows Installer: Automation Interface: Automation Interface Reference: Session Object).
Mieux encore: on peut aller lire d'autres valeurs de la table Property. J'ai essayé "ProductName" et ça fonctionne. Je te suggère d'essayer encore un peu avant de lancer la serviette...
_________________
HTH

This posting is provided "AS IS" with no warranties, and confers no rights cr*sse!