Win Application在安装后不会启动 [英] Win Application not initilizing after installation

查看:64
本文介绍了Win Application在安装后不会启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在4.0中开发了一个基于Windows的应用程序。并为此创建.msi ...成功安装后,当我点击快捷方式图标或从程序列表中我发现我的进程正在运行但应用程序没有初始化。意味着根本不能看到我申请的任何GUI。



请告诉我这可能是什么症状!

OS 7和alreday设置所有类型的兼容性..在其他OS 7上运行

解决方案

绝对不知道。

我们不能拥有,因为我们不知道你的应用是做什么的,或者是怎么做的。



所以要做的第一件事就是一起得到一些具体的信息。

你不能使用调试器 - 因为你的目标PC可能没有,也不应该 - 所以你将不得不回到做旧的旧方式:记录和手动跟踪。 />


编辑你的应用程序,并开始向init代码添加语句,以便将行添加到某种形式的日志文件中

 File.AppendAllText( @  D:\ Temp \startup.txt  St艺术... \ n); 

会这样做( File.AppendAllText [ ^ ])

现在,构建一个新的MSI,安装它,并运行该应用程序。查看日志文件 - 它应该告诉你它有多远。所以看看你的代码,并重复改进日志记录的过程,直到你知道哪些代码正在执行,哪些不是。



听起来像工作?是的 - 但它比猜测要快得多! :笑:


I developed one windows based app in 4.0. and create .msi for that...after successful installation when i click on shortcut icon or from program list i found my process is running but application not initilize. means not at all to see any GUI of my application.

Please suggest me what could be symptons behind this!
OS 7 and alreday set all types of compatibility..its run on other OS 7

解决方案

Absolutely no idea.
And we can't have, because we have no idea what you app does, or how it does it.

So the first thing to do is get some concrete information together.
You can't use the debugger - because your target PC presumably doesn't have one, and shouldn't - so you will have to go back to the "old way" of doing things: logging and manual tracing.

Edit your app, and start adding statements to the init code to add lines to a log file of some form

File.AppendAllText(@"D:\Temp\startup.txt", "Starting...\n");

will do it (File.AppendAllText[^])
Now, build a new MSI, install it, and run the app. Look at the log file - it should tell you how far it got. So look at your code, and repeat the process refining your logging until you have an idea which code is executing, and which isn't.

Sounds like work? Yes - but it's a lot quicker than guessing! :laugh:


这篇关于Win Application在安装后不会启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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