J'ai construit une extension shell dll qui est utilisée pour afficher le menu contextuel clic droit pour les 64 et 32 bits. J'enregistre la dll dans installscript lors de l'installation à l'aide de la fonction LaunchAppAndWait.
Cela fonctionne bien pour les machines 64 bits, mais pas pour les machines 32 bits.
if (SYSINFO.bIsWow64 ) then
LaunchAppAndWait("", "regsvr32.exe /s " + TARGETDIR ^ "\bin\x64\test.dll" , LAAW_OPTION_WAIT);
else
LaunchAppAndWait("", "regsvr32.exe /s " + TARGETDIR ^ "\bin\test.dll" , LAAW_OPTION_WAIT);
endif;
Quelqu'un at-il rencontré ce problème?
Réponses:
0 pour la réponse № 1Trouvé où le problème est. En faisant LongPathToQuote pour la ligne de commande, arg résolvait le problème.
dllPath = "/s " +TARGETDIR ^ "\bin\win32\test.dll";
LongPathToQuote(dllPath,TRUE);
LaunchAppAndWait("regsvr32.exe", dllPath, LAAW_OPTION_WAIT);