防病毒软件会阻止安装程序运行(Antivirus prevents setup program from running)
大家好:
我正在开发一个visual Studio安装程序。 问题是防病毒(AVG)报告我没有足够的权限来运行安装程序。 当我禁用防病毒时,安装程序正常。 我的设置不会修改注册表,它是如此简单。 它只是在程序文件(x86)中安装程序。 我以管理员身份登录计算机,我也以管理员身份运行设置。
任何人都可以指出我如何绕过防病毒软件?
谢谢Hi all:
I'm working on a visual Studio setup program. The problem is that the antivirus (AVG) reports that I don't have enough permissions to run the setup program. When I disable the antivirus, the setup works fine. My setup does't modify the registry and it is so simple. It just installs a program in the program files(x86). I log in to my computer as administrator and I run the setup as administrator too.
Could anyone point out how I can bypass the antivirus?
Thanks
原文:https://stackoverflow.com/questions/13264232
最满意答案
根据sunil-antony的回答,我想出了以下解决方案(使用
save_graphics_state
来附上绘图说明,请参阅Prawn文档):Prawn::Document.generate("x.pdf") do image_width = 200 image_x = 100 image_y = 100 save_graphics_state do soft_mask do fill_color 0,0,0,0 fill_circle [image_x + image_width/2, image_y - image_width/2], image_width/2 end image "example.jpg", at: [image_x, image_y], width: image_width, height: image_width end end
Based on sunil-antony's answer, I came up with the following solution (using
save_graphics_state
to enclose drawing instructions, see Prawn documentation):Prawn::Document.generate("x.pdf") do image_width = 200 image_x = 100 image_y = 100 save_graphics_state do soft_mask do fill_color 0,0,0,0 fill_circle [image_x + image_width/2, image_y - image_width/2], image_width/2 end image "example.jpg", at: [image_x, image_y], width: image_width, height: image_width end end
相关问答
更多-
使用Prawn以pdf格式添加图像(Add image in pdf using Prawn)[2022-11-05]
Prawn::DATADIR是新的,它已于近2或3个月前推出。 以前人们会使用Prawn::BASEDIR/data来代替。 如果您使用的是当前0.12.0版本的gem,则应该坚持使用Prawn::BASEDIR/data 。 如果你使用的是Rails 3.1,你也可以把你的图片放在资产目录中,并使用"#{Rails.root}/app/assets/images/logo_small.png" Prawn::DATADIR is new, it has been introduced recently a ... -
因此,Prawn不提供内置的HTML解析,因此,它不知道ul和li标记的含义。 Prawn的文本框可能是最接近的选项。 编辑: - 为此,这是一个小而可行的实现: 假设html字符串是
- First line
- Second line
-
PNG的种类很多,绝大多数会和虾一起工作,但有一些不会。 最简单的选择是将其转换为JPG或将其重新保存为非隔行扫描的PNG。 After one hour search google, I have not found the problem. Then I try to convert png file to jpg file. I used Online Image Converter to convert png to jpg file. After image was converted, I us ...
-
尝试在图像之间使用start_new_page 。 这样,您的第二张图片将被放置在新页面上。 编辑:如果您的模板已有多个页面,您可以使用go_to_page在页面之间导航 http://prawn.majesticseacreature.com/docs/0.11.1/Prawn/Document.html#method-i-go_to_page Try using start_new_page between the images. That way your second image will be p ...
-
table([ ["UnitID", "First Name", "Last Name", "NPS Score", "Comments"], *[unitid_array, firstname_array, lastname_array, nps_score_array, comment_array] .transpose ]) table([ ["UnitID", "First Name", "Last Name", "NPS Score", "Comments"], *[unit ...
-
根据sunil-antony的回答,我想出了以下解决方案(使用save_graphics_state来附上绘图说明,请参阅Prawn文档): Prawn::Document.generate("x.pdf") do image_width = 200 image_x = 100 image_y = 100 save_graphics_state do soft_mask do fill_color 0,0,0,0 fill_circle [image ...
-
做: 宝石哪位大虾 那会给你对虾宝石的位置。 它包括示例dir。 你可以在那里找到table / bill.rb。 do: gem which prawn that would give you location of the prawn gem. It includes the examples dir. You can find table/bill.rb there.
-
注意,因为如果你的表包含任何零或非字符串值,虾会感到困惑。 尝试使用.to_s方法。 例 @report.data.to_s Watch out, since prawn will get confused if your table contains any nil or non string values. Try using the .to_s method. Example @report.data.to_s
-
在您分配的new操作中: @tables = Table.new 这是 - 我想 - 一个对象,没有响应map 。 In the new action you are assigning: @tables = Table.new which is - I suppose - a single object, not responding to map.
-
dynamic_data = [] object.objectProperties.each do |f| # populate dynamic_data array end table_data = [[Prawn::Table::Cell::Text.new( pdf, [0,0], :content => "Title", :align => :center, :inline_format => true, :size => 1 ...