How can I use a Sharepoint server as the Source for Inno Setup files? - sharepoint

I'm using Inno Setup for an application setup. Many of the data files that will be included with this application are stored on a Microsoft Sharepoint server. When I try to use the path Sharepoint provides in the 'Source:'
[Files]
Source: http://teams/sm/Symbols/*; DestDir: {app}\Symbols
I get the following error on compile:
Unknown filename prefix: "http:"
How can I properly call out a Sharepoint location as the source for my data files?
I'm using Inno Setup version 5.4.2
EDIT
I know what the documentation says.
I am looking for a solution to this problem. I am using InnoSetup, the files are on SharePoint; how can I make this work?
EDIT 2
Thanks to brian brinley. Below is the exact syntax that I used in InnoSetup thanks to his answer:
[Setup]
SourceDir=\\teams\sm
[Files]
Source: \Symbols\*; DestDir: {app}\Symbols

SharePoint Libraries support WebDav so you can go to the library that is containing your setup files and open with explorer. Since you didn't specify which version of sharepoint, here are both options.
SharePoint 2010 - open the library, click on the library tools/library tab in the ribbon, and select "Open with Explorer"
SharePoint 2007 - Open the library, click on actions and then select open with windows explorer.
Once you open in explorer you will have the path. If it opens with http:// you can simply replace with \ i.e.. \myServer\myLibraryName

This is not supported by Inno Setup. You should download your files from SharePoint and then create the installer (maybe you can create a script for this).
Here's more information on what you actually can put in the [Files] section.
Web installations are not supported either: Is there a "web install" feature?

As alfonso said, it's not supported by Inno, you will need to use a 3rd party app/script to download them, possibly something like wget.
This can either be done as a pre compile step in your build script or by using ISPP's Exec() function to download each in turn as they're needed.
As for the wildcard, this is not supported by HTTP at all so you will need some form of file list containing each one to get, or use wget's recursive download with a single index page.
(Note that I don't use SharePoint so I can only talk about the Inno part of it.

Related

bulk download files from microsoft sharepoint

bulk download from share point not downloading exact files and error.txt files are generated.
is there any application to bulk download sharepoint files
https://i.stack.imgur.com/cnOyy.png
https://i.stack.imgur.com/X5wf2.png
You can use the Open with Explorer function to open the document library in Windows Explorer, where you can select all the files you want and simply copy them to your destination. Note that this function only works in Internet Explorer, not in Edge or any other browser. There are ways to make it kind of work in modern browsers, but that requires custom code. You can, however, save the location of the document library to the Quick access list to make it easier to find.
Another option seems to be the SharePoint Bulk File Download web part, but I believe this is a paid tool that must be purchased after the trial.
I use Open with Explorer all the time, but I have never tried the mentioned web part.

how do I mark a file as a data file in a visual studio 2010 vsto clickonce application?

I'm making a Word 2007 add-in with C# 4.0 in Visual Studio 2010. I need an Access 2007 database (a .accdb file) to be placed in the data directory by the clickonce installer. Unfortunately, the file is getting put elsewhere, so the application can't find it at runtime. I've seen various articles refer to using the Application Files dialog on the Publish tab of the project properties to mark the file as a data file, but I have no Application Files button for some reason.
Any idea how to make the Application Files dialog appear, or some other way to manually mark my .accdb file as a data file?
In the Solution Explorer, if you set the file's property to be Copy to Output Directory = Copy Always. Then when you go to Application Files they should default as a Data File.
However, since this is your database I would consider looking at make it safe across updates so you might consider this post.
See http://msdn.microsoft.com/en-us/library/dd465298.aspx
By the way, "Application Files" button should be on the project properties' Publish tab.
VSTO Applications do not have the Application Files button available, and you can't set the file types specifically. If your file is not being deployed to the data directory and you want it to be, rename it with a file extension that is marked by ClickOnce as data. This includes .xml, .mdb, and .mdf. Otherwise, the file is deployed with the VSTO application and will be in the same location as the rest of the files.
The location of the deployment files for a VSTO application can be discovered programmatically this way:
System.Reflection.Assembly.GetExecutingAssembly.CodeBase
You might want to move the database, though, because unless you deploy it as data, it will be lost when an update is performed. Or you can check out this article about where to put your data to keep it safe from ClickOnce updates.
I was able to get things to work by using the Mage tool as described here:
http://msdn.microsoft.com/en-us/library/6fehc36e.aspx
The trick with MageUI is it's open file dialog assumes you want to open a manifest associated with a .exe; a vsto project has a .dll, so the manifest doesn't appear in the files list by default, which was really tripping me up.
Basically, this process is a pain because you have to remember to do it manually. I don't know if there's a way to make this part of the build (maybe a post-build step? But this is really a post-publish step).

Sharepoint Designer - Layout folder?

I have been told to edit this file in Sharepoint Designer:
/_layouts/KWizCom_WikiPlus/CreateNew.aspx
I found it in the Windows File Explorer at:
\12\TEMPLATE\LAYOUTS\KWizCom_Wikiplus
I can't seem to find it in Sharepoint Designer?
The _layouts folder is protected by SharePoint Designer because changing the OOTB files in that directory puts SharePoint into an unsupported state. For more information, see here and here.
For custom or third party files under _layouts, if you try to open them directly with a URL (http://myserver/_layouts/KWizCom_Wikiplus/CreateNew.aspx), you will receive an error: Files in the _layouts folder are not available for editing. You can open them in SharePoint Designer with an UNC path rather than a URL (\\myserver\c$\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\KWizCom_Wikiplus\CreateNew.aspx), but at this point SharePoint Designer is not any different than Visual Studio or Notepad as you will probably only have Code View available since ~/ and virtual directory URLs will not be resolved.
I have not used Wiki Plus, but note that not only will this change affect all web applications and site collections on the server, but any changes you make will be wiped out if an updated version of Wiki Plus is deployed to the server.
This file is effectively present in every site at http::/{site url}/_layouts/KWizCom_WikiPlus/CreateNew.aspx. To change it across all of them you would edit the file from the file system.
There are many reasons why editing the file on the file system may be a very bad idea. At minimum you might save a copy of the original and the updated file. Better still, you could put any file you're editing this way under version control.

What is the easiest way to add a page to ask for a string in NSIS using MUI?

I'm an NSIS novice.
I'm using the NSIS editor, and the built-in wizard to create a basic installer. I've figured out how to add a second page to ask the user for an alternate folder (install path vs data storage path). I also need to ask them for a URL (a SOAP/WSDL location), and I'd like to just add in another page similar to the directory page that just asks for a generic string (no browse, etc).
I'm using MUI (not MUI2).
Is there some simple way to do this?
To create a custom page, use nsDialogs (or the older InstallOptions) They are both included in the official installer, go look at some of the examples.

Adding file to WSS 3.0 document library without GUI

OK I am new to working with SHarePoint Services and have an issue that I am trying to overcome. Where I work, I have implemented a Crystal reports Scheduler that outputs the reports to a shared folder. What I am trying to accomplish now is finding a way that I can point the output of the scheduler to the document library. I was hoping that I could find it like any other shared folder.
On your box hosting sharepoint, turn on the WebClient Service.
Goto the library you wish to upload to, drop down on actions-> open in windows explorer
The path you see can be converted to a UNC path, where you can use it like any other shared folder.
To convert, it should look like \\servername\Shared Documents
This unc can be mapped as a shared folder like any other physical networked folders.
Happy Uploading!
If you want to upload the file in your code (not manually) without mounting a WebDAV share, you can also HTTP-PUT it to the desired URL, for example http://myserver/sites/mysite/mysubsite/mylist/myfolder/foo.doc
Try the code in this question: Uploading files to Sharepoint (WSS 3.0) document library using HTTP PUT
With the tip in this answer: Uploading files to Sharepoint (WSS 3.0) document library using HTTP PUT.

Resources