Clickonce application generates SmartScreen warning though it's digitally signed - visual-studio-2012

My ClickOnce installer generates a SmartScreen warning. The executable is signed by a Microsoft Authenticode valid certificate though. The project is generated using Visual Studio 2012 (it's a C# Console Project, containing two DLL, one for JSON and another for PKCS11Interop).
Here is the signing configuration of Visual Studio :
I also added this target after compile in order to digitally sign the executable contained into the installer :
<Target Name="AfterCompile">
<Exec Command=""C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\signtool.exe" sign /f "$(ProjectDir)CertificatCodeSigning.pfx" /p mypassword /v "$(ProjectDir)obj\$(ConfigurationName)\$(TargetFileName)"" />
</Target>
When I take a look at the setup.exe generated, I have this :
But when I take a look at the executable contained into the setup.exe, I have a sha1 digest instead of a sha256 :
When I execute the setup.exe from a Windows 8/8.1, I still get a SmartScreen warning. Can you tell me what I'm doing wrong ?
Thanks in advance,

Related

installing Help viewer without installing visual studio

I want to take some of MSDN help files offline on a windows machine which does not have visual studio installed on it. the problem is that I cannot find a way to get and install Help Library manager and Help viewer without installing the visual studio or sql server.
How can I install them without installing the visual studio or sql server?
I just wrote an answer on how to do this for an older question, which can be found here.
For convenience, here are the essential steps to get Help Viewer 2.2 to run without going to the trouble of installing a complete copy of Visual Studio 2015:
Most of the files required by HlpViewer.exe can be found on the Visual Studio DVD in two different MSI packages. By passing some additional command line arguments to msiexec, it's quite easy to install them manually:
msiexec.exe /i help3_vs_net.msi VS_SETUP=1
msiexec.exe /i vs_minshellcore.msi MSIFASTINSTALL="7" VSEXTUI="1"
While this installs most necessary files, it doesn't account for all of them ... to keep things simple, I copied the rest of them from a working installation on another computer:
C:\ProgramData\Microsoft\HelpLibrary2
Essentially only contains a CatalogType.xml and some empty directories.
C:\Program Files (x86)\Microsoft Help Viewer\v2.2\CatalogInfo\VS11_en-us.cab
Moreover, it's necessary to provide the application with a valid ContentStore path by importing the following .reg file:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Help\v2.2\Catalogs\VisualStudio14]
"LocationPath"="%ProgramData%\\Microsoft\\HelpLibrary2\\Catalogs\\VisualStudio14\\"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Help\v2.2\Catalogs\VisualStudio14\en-US]
"SeedFilePath"="C:\\Program Files (x86)\\Microsoft Help Viewer\\v2.2\\CatalogInfo\\VS11_en-us.cab"
"catalogName"="Visual Studio Documentation"
Finally, I created a new Application Shortcut and changed its Target: to read as follows:
"C:\Program Files (x86)\Microsoft Help Viewer\v2.2\HlpViewer.exe" /catalogName VisualStudio14 /launchingApp Microsoft,VisualStudio,14
Et voilĂ !, with that HlpViewer.exe should finally execute without any problems!
In MSDN to USB v2.5, you don't have to have any Visual Studio IDE installed:
https://stackoverflow.com/a/66595500/3268088
I know its old question. I just run into a problem involving Help Viewer.
my recovery steps are :
get sqlexress installer (if you haven't got one)
after extracting the files, check its folder and find for "help" folder
I got mine "SQLEXPRWT_x64_ENU\redist\VisualStudioShell\Help\x64"
run install.exe with administration priveleges (Run as Administrator)
all done.

Execute commands in visual studio 2012 like in makefiles

I have a driver code working for win2008 server compiled using wdk7.1.0. I converted the project to compile in visual studio 2012 with wdk8.1 and created sln and vcxproj files. I compiled successfully and generated .sys and .inf files.
My question is I have some files need to be copied to the output directory as part of build process automatically (after generating .inf and .sys files).
For wdk7.1.0, I wrote a makefile in which I executed "-copy /y src.out dest.out" and copied as part of compilation.
In wdk8.1 as I am compiling using visual studio, is there any way to execute these commands as part of build? like can I edit .sln/.vcxproj files etc etc.
Thanks in Advance
Venkatesh
You can use pre-build or post-build events properties of a project for this. You can call either a specific command or batch file to do such work.

How to generate .trx file in vs2012?

I am using VS2012 Ultimate edition for my Coded UI project.
My project is not generating .trx file in the TestResults folder. Please suggest me steps to get .trx file using Visual Studio 2012.
VS 2012 does not generate .trx files and there is not a way to configure it to do so. However, if you use VSTest.Console.exe command line utility, then you can generate a .trx file by passing it /logger:trx command line parameter.

Include stdlib.h :No such file or directory in vc++

I compiled my c++ program in the directory
D:\Program Files\Microsoft Visual Studio 9.0\VC\bin
But stdlib.h is present in the path.
D:\Program Files\Microsoft Visual Studio 9.0\VC\include
While compiling my program, it throws the following error in the command prompt.
fatal error c1083:cannot open include file:"stdlib.h":No such file or directory
NMAKE : fatal error U1077 :'.\c1.exe' : return code '0x2
How to solve this issue.Please take a look into it.
Thanks.'
If you compile from the command-line, you should use the Visual Studio Command Prompt as it sets common environment variables that are used for compiling.
If for some reason you insist on using cmd.exe then you have to either add the include paths to the INCLUDE environment variable or you have to give the compiler the command-line parameter /IC:\Path\to\include
Details are available on MSDN
edit: well since this got recently upvoted I might as well add what I forgot last time. If you want to set up the environment variables that the Visual Studio Command Prompt uses you can just execute the vcvarsall.bat which is located in a directory like C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC for details consult the relevant MSDN page
Make sure you have the right platform toolset selected.
Project -> properties -> configuration properties -> Platform toolset
If you move a project from computer to computer via a flash drive or something, it can have an invalid toolset selected. That can cause intellisense to tell you that.

Error Message in Eclipse with Blackberry Plugin: Signature tool was not found

I'm using Eclipse Galileo R2 (32bit) on a Windows 7 machine with the Blackberry Eclipse Plugin v1.1.2. The plugin installation completed without any errors. In the "Problems" tab, I get an error, and I am unable to build my project.
This error reads: Signature tool was not found.
I have set the permissions on my Eclipse folder to Everyone: Full Control
I have verified that the signature tool (SignatureTool.jar) exists: C:\Program Files (x86)\Eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components\bin
Am I missing something here?
Why can't the plugin see the the signature tool?
Did you installed the keys provided by RIM. If not then you need to buy certificate which costs 20$ and then install in the eclipse.
The name of three certificates will be something like this client-RRT-2492457023.csi. Once successful installation is over you need to check inside
C:\Program Files (x86)\Eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components\bin
search for the sigtool.csk, sigtool.db and sigtool.set. Once these three files found then your installation is successful.

Resources