开发者

how to define the temporary folder that ClickOnce extract the files to?

I've created a winforms appli开发者_如何转开发ction and i need to check if .NET4 installed on the machine before starting the application.

im using the "Publish" option, it works great BUT im looking for a way to define the temporary folder where all the application files will be extracted to

the current behaiver is that when im starting the files that the Publish created ,it extracting all my application to :

C:\Users\shacharsa\AppData\Local\Apps\2.0\057V8G8X.MXV\6482W7L5.25P\smar..tion_30394eeddffd8a96_0001.0000_5bb050675a14dcbe\Files

and i want it to extract them to c:\temp

thanks,

shachar.


You can't define the location, however a better solution to your problem is available. You should read up on the ClickOnce bootstrapper and using that to detect and install prerequisites.


You can't do that, it is part of how ClickOnce works, its security model will not allow for that to happen.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜