卸载时由InstallShield 2012创建的安装文件有时未获得正确的INSTALLDIR [英] Install file create by InstallShield 2012 sometimes did not get the proper INSTALLDIR when uninstall

查看:121
本文介绍了卸载时由InstallShield 2012创建的安装文件有时未获得正确的INSTALLDIR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对InstallShield 2012有一个问题.

I have one problem with InstallShield 2012.

我尝试使用InstallShield创建一个安装文件,该文件在安装期间运行良好,但是当我使用此文件进行卸载时,无法获得在安装期间在UI中选择的INSTALLDIR.

I try to create an install file with InstallShield , this file runs fine in installation period , but when i use this file to do uninstall, it can't get the INSTALLDIR I chosen in UI during the install period.

另外,如果我使用相同的InstallShield项目创建安装文件,有时输出文件可以正确卸载,但有时却不能,我真的很困惑.

And in additional, if i use the same InstallShield project to create install file, sometimes the output file can uninstall correctly, but sometime are not, i really feel confused.

我认为根本原因是安装程序未获得正确的INSTALLDIR值,它获得默认值,但安装时未获得一个输入.

I think the root cause is installer does not get the correct INSTALLDIR value,it get the default value but not the one input while installed.

对这个问题有任何想法吗?

Any idea about this issue?

推荐答案

要保留InstallDir的值,最后得到了解决方法,我们可以添加一个组件并将其值设置为InstallDir,它解决了我的问题.

To keep the InstallDir value, finally I got a workaround, we can add a component and set it's value as InstallDir, it solved my problem.

这篇关于卸载时由InstallShield 2012创建的安装文件有时未获得正确的INSTALLDIR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆