Installationsdatei bedingt durch msi (Internal Error 2732)
-
01-10-2019 - |
Frage
Ich möchte ein Plug-ins installieren, um eine vorinstallierte Anwendung dll. Vorinstallierte Anwendung hat ihren installierte Standort in der Registry, von wo aus ich die Lage zu bekommen. Wenn ich kann die Registrierung nicht gefunden. Ich mag einfach nicht die Plugin-Datei installieren. Ich bin mit Wise Installation Express 7.4.0.214.
Was ich getan habe ist ein System Suche auf der Registrierung setzen und ich erhalte die installierte Position Programm, für das ich das Plugin
versenden möchtenIch habe einen Eintrag im Verzeichnis Tabelle mit Namen „PLUGINDIR“ erstellt whoes Directory_parent wird auf „“ und DefaultDir zu „“
In MSI-Skript Ich habe das Skript wriiten auf Execute Immediate Registerkarte
REM Display the message fetched from the registry
Display Message [InstalledDir]
Set Directory PluginDir to [InstalledDir]Plugin\
Das Meldungsfeld zeigt den richtigen Weg geholt, aber sobald es zu Setverzeichnis Kegeln es zeigt „Interner Fehler 2732. 0“
Aber wenn ich Satzverzeichnis Kommentar Msi Lauf withot Fehler. Ich bin nicht das bekommen, was ich falsch mache.
Lösung 3
I found the solution from
http://www.dawnstar.com.au/wpshelp/tnt/conditional_changes.html
Andere Tipps
I'm afraid I don't know wise very well ( it's an end of life product btw ) but in MSI you put a condition on your component. AppSearch will read the registry to try to set the property and you use the property in both assigning your directory and gating whether the component and it's file gets installed.
Your set directory call is sequenced incorrectly. You should sequence it after CostInitialize.
Take a look at the doc http://msdn.microsoft.com/en-us/library/aa372835(VS.85).aspx.